2011-06-15 87 views
2

這個插座不工作,我嘗試了一切,但它從來沒有實際顯示報價。事先只是文字。mIRC插座不工作

on $*:TEXT:/^[[email protected]](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 
    } 
    } 
} 

回答

5

我沒有很多mIRC的經驗,但不是它supposd是$ regml,而不是$ regm1?

+0

哇即時通訊白癡 – user798759 2011-06-15 19:09:46

2

我的計算機上的腳本改變號碼的字體,所以我可以看到那種錯誤:)