Extented the avalable identifiers in matchtexts - 06/04/05 12:01 AM
I would like more $identifiers defined while in matchtext of events.
What do I mean?
Well. event match texts can currently be defined with things like...
ON *:TEXT:$($+(*,$me,*)):#channel:{ echo -a Alert : $nick said your name on $chan }
It would be nice if the $nick and $chan identifier were also availabe with in that matchtext (specific to # events, i dont expect a $chan in a ? etc)
I do know the matchtext is done before the #channel comparision is done, but I felt that knowing who and where this "possable" event is from during the matchtext can be usefull
example below (and yes i know it could be done differently, who can say "example")
ON *:TEXT:$+($iif((!trigger == $1) && (!%ignore. [ $+ [ $nick ] ]),$1-)):#channel:{
msg $chan triggered by $nick
set -su10 %ignore. $+ $nick $true
}
Currently $chan & $nick have no value within the above examples matchtext, even tho they are clearly specific to the possable event.
Other matchings im sure could also do with some extra ones, not just ON TEXT, but this is the one i choose to show.
What do I mean?
Well. event match texts can currently be defined with things like...
ON *:TEXT:$($+(*,$me,*)):#channel:{ echo -a Alert : $nick said your name on $chan }
It would be nice if the $nick and $chan identifier were also availabe with in that matchtext (specific to # events, i dont expect a $chan in a ? etc)
I do know the matchtext is done before the #channel comparision is done, but I felt that knowing who and where this "possable" event is from during the matchtext can be usefull
example below (and yes i know it could be done differently, who can say "example")
ON *:TEXT:$+($iif((!trigger == $1) && (!%ignore. [ $+ [ $nick ] ]),$1-)):#channel:{
msg $chan triggered by $nick
set -su10 %ignore. $+ $nick $true
}
Currently $chan & $nick have no value within the above examples matchtext, even tho they are clearly specific to the possable event.
Other matchings im sure could also do with some extra ones, not just ON TEXT, but this is the one i choose to show.