此套接字无法正常工作,我尝试了所有内容,但它实际上从未显示过引号。只是事先的文字。
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,(.+)"<br>)) {
%Motivation $+ Today's motivational quote is: $regm1(1) $+
unset %Motivation | sockclose $sockname
}
}
}
答案 0 :(得分:5)
我对mIRC没有很多经验,但是它不是$ regml,而不是$ regm1?
答案 1 :(得分:2)
我的计算机上有一个更改数字字体的脚本,所以我可以看到这种错误:)