2

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

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
    }
  }
}
4

2 回答 2

5

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

于 2011-06-15T19:09:13.620 回答
2

我的电脑上有一个脚本可以更改数字的字体,所以我可以看到这种错误:)

于 2011-06-15T19:12:53.680 回答