mIRC 套接字不工作

标签 mirc

这个套接字不工作,我尝试了一切,但它从未真正显示报价。只是事先的文字。

on $*:TEXT:/^[!@](motivate|mqod|mqotd)/Si:#:{ if ($chan !isin %notlist) {
    if ($sock(Motivation)) { notice $nick Please try again in a few seconds. | halt }
    set %Motivation $iif($left($1,1) == @, msg $chan, notice $nick) $col
    sockopen Motivation motivateus.com 80
} }
on *:SOCKOPEN:Motivation: {
  sockwrite -nt $sockname GET /thoughts-of-the-day.htm HTTP/1.1
  sockwrite -nt $sockname Host: motivateus.com 
  sockwrite -nt $sockname $crlf
}
on *:SOCKREAD:Motivation: {
  if ($sockerr) { halt }
  else {
    var %sockreader | sockread %sockreader 
    if ($regex(%sockreader,(.+)&quot;<br>)) {
      %Motivation $+ Today's motivational quote is: $regm1(1) $+ 
      unset %Motivation | sockclose $sockname
    }
  }
}

最佳答案

我对 mIRC 没有太多经验,但它不是应该是 $regml,而不是 $regm1 吗?

关于mIRC 套接字不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6362933/

相关文章:

sockets - mIRC套接字图表集失败

javascript - 从网站(livebox)提取数据

php - 在 php 中解析 mIRC 颜色

c# - Mirc 颜色代码的正则表达式替换

mIRC 窗口中的滚动条

sockets - 页面加载两次

variables - IRC 变量剩余时间