mIRC 脚本片段 misfirigin

mIRC Script snippet misfirigin

只要有人打字!指出该代码段出于某种原因贯穿其所有命令我试图找出导致这种情况发生的原因,到目前为止我无法在代码中找到问题

 alias -l sd { return " $+ $scriptdir $+ $ $+ " }
    on $*:text:/^!(monday|tuesday|wednesday|thursday|friday|saturday|sunday|website|food|touchy|sakura|Bass|bacon|snickers|bot|quiz|quizrules|NYE|NYD|stop|dance|Leta|back|sways|ladies|enters|choice|lounge|hiphop|fault|country|piano|rocks|diva|diva1|hello|sassy|hips|bounces|woot|kiss|pops|wiggle|greets|gotit|phone|next|cheeky|dj|xmas|here|guitar|twist|dj1|facebook|cheeky1|jig|birthday|thanks|chacha|moves|fleshies|aerial|drinks|heifer|dances|tap|chacha1|jam|hairbrush|hairbrush1|hairbrush2|reggae|lmfao|accept|hairbrush3|touch|no|music|tinbot|buffering|fleshie1|brat|2step|twirls|vote|whistle|hohey|scripted|botgurl|shows|phone1|laughs|me|crazy|shares|rani|takes|hour|mj|elvis|profiles|song|sweet|brightie|fire|passenger|lr|)$/Si:#:{
      if (!%f) { inc -u6 %f
        if ($isfile($sd(timetable.txt))) { .play $+(-t,$regml(1)) # $sd(timetable.txt) 50 }
        else { msg # Either timetable.txt doesn't exist or the txt file name doesn't match! }     
      }
    }

    menu * {
      Ping-Pong:$iif(%pp,pingpongoff,pingpongon)
      Anti-Idle:$iif(%antiidle,antioff,antion)
    }
    on 1:ping: { $iif(%pp,raw pong  wannaplaypingpong,) }
    on 1:pong: { $iif(%pp,raw ping  wannaplaypingpong,) }
    alias pingpongoff { unset %pp | echo -a Ping-Pong has been disabled. }
    alias pingpongon { set %pp on | echo -a Ping-Pong has been enabled. }
    alias antioff { timeridle off | unset %antiidle | echo -a Anti-Idle has been disabled. }
    alias antion { .timeridle 0 120 scid -atM1 antiidle | set %antiidle on | echo -a Anti-Idle has been enabled. }
    alias antiidle { .msg $status $me }
    raw 401:*: {
      if (connected isin -) && (%antiidle) { echo -s ***** SassIRC Anti-Idle | halt }
    }

    }

    }

您的正则表达式末尾有错误。

...fire|passenger|lr|)$..

其中包含多余的最后一个管道|,将其从末尾删除即可解决问题。