mIRC Homepage
Posted By: firefox combine text notice and action - 09/11/08 05:52 PM
if i have an on text, on notice and on action part in a script that just do the same thing is there a way to do it all together rather than have 3 on *'s ?

hope you get what i mean
Posted By: Wims Re: combine text notice and action - 09/11/08 06:26 PM
Use an alias to do your job, and just call it in your event, here is an exemple :

Code:
on *:text:*:#:dojob $nick $chan $1-
on *:action:*:#:dojob $nick $chan $1-
on *:notice:*:#:dojob $nick $chan $1-

alias dojob {
;$1 is the nick
;$2 is the channel
;$3 is the text
...
} 
Posted By: firefox Re: combine text notice and action - 09/11/08 07:14 PM
thanks wims
© mIRC Discussion Forums