在私人查询时在文本上?
On Text while in private query?
我想知道如何让我的远程脚本在私人查询而不是频道中工作,谢谢!
示例:
on $*:text:*abc*:"username": { msg "username" you whispered, . }
从这里开始:http://en.wikichip.org/wiki/mirc/on_event#Target
The target parameter of the event defines the locations of where the
event can be triggered from. For example, the on text event can be
triggered by a channel message or by a query.
? - 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, . } }
我想知道如何让我的远程脚本在私人查询而不是频道中工作,谢谢! 示例:
on $*:text:*abc*:"username": { msg "username" you whispered, . }
从这里开始:http://en.wikichip.org/wiki/mirc/on_event#Target
The target parameter of the event defines the locations of where the event can be triggered from. For example, the on text event can be triggered by a channel message or by a query.
? - 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, . } }