on 1:text:!update:#mirc:{ dostuff.alias $1- }
on 1:input:!update:#mirc: { dostuff.alias $1- }
alias -l dostuff.alias { dostuff }
2 extra lines is to hard?
IMO If you have things that mihght get called from multiple places then u should use alias's. An alias even allows you to test them to see if they work. And allows you to overcome problems with things like $nick and $me (PS in ON INPUT $nick is actually filled out with your nick, but lets assume its not for arguements sake) You can do this.
on 1:text:!update:#mirc:{ dostuff.alias $nick $1- }
on 1:input:!update:#mirc: { dostuff.alias $me $1- }
alias -l dostuff.alias {
var %nick = $1
tokenize 32 $2-
dostuff | ; using %nick and not $nick
}
^ This is also good for testing as it mans u can call the alias using any $1 to pass it the NICK and thus emulate people in channels etc and see how the script reacts.
maybe i'm just being lazy!
just maybe
