小编use*_*759的帖子

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 …
Run Code Online (Sandbox Code Playgroud)

mirc

2
推荐指数
1
解决办法
245
查看次数

标签 统计

mirc ×1