在私人查询中的文本?

时间:2016-07-19 22:06:45

标签: irc mirc

我想知道如何让我的遥控器脚本在私人查询而不是频道中工作,谢谢! 例如:

on $*:text:*abc*:"username": { msg "username" you whispered, $2 . }

1 个答案:

答案 0 :(得分:1)

从这里开始:http://en.wikichip.org/wiki/mirc/on_event#Target

  

事件的目标参数定义了位置的位置   事件可以从中触发。例如,on text事件可以是   由频道消息或查询触发。

     

? - defines query location
  # - defines channel location
  * - defines both query and channel locations
  %var - A variable containing a channel or a list of channels is also acceptable

在你的例子中你会这样做:

on *:text:*abc*:?: { if ($nick == NAME) { msg $nick you whispered, $2 . } }