【问题标题】:mIRC Script snippet misfiriginmIRC 脚本片段错误
【发布时间】:2016-05-07 20:40:13
【问题描述】:

只要有人键入!点 sn-p 出于某种原因运行它的所有命令我试图找出导致这种情况发生的原因,到目前为止我无法在代码中找到问题

 alias -l sd { return " $+ $scriptdir $+ $$1 $+ " }
    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 $1 wannaplaypingpong,) }
    on 1:pong: { $iif(%pp,raw ping $1 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 $1-) && (%antiidle) { echo -s ***** SassIRC Anti-Idle | halt }
    }

    }

    }

【问题讨论】:

    标签: mirc


    【解决方案1】:

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

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

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

    【讨论】:

    • 好眼睛,老实说我看的时候没看到
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-04-19
    • 1970-01-01
    • 2014-08-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多