mIRC Homepage
Posted By: sdamon $identifiers as matchtext or event location - 09/09/05 09:54 AM
(before i begin, i did do a search of the past 2 years...and didnt find any relivent topics in the first 200 replys)

the suggestion in and of itself is to be able to use identifiers (custom ones most likely) as the match text and event location of an event. Doing so in the scripting engins has GOT to be more efficent than scripting it (as show below) if just marginaly so..

on *:text:matchtext:#:{
if ($chan == $custchanlistidentifier) {
...
}
}
on *:START:set %custchanlist $custchanlist
on *:text:matchtext:%custchanlist:{
...
}

You can ofcourse also change %custchanlist with timers, aliases, inside events, etc. Seems enough already?
Try this...

on *:JOIN:$($mychanlist):echo -a HERE
on *:TEXT:*:$($mychanlist):echo -a #

alias mychanlist return #chan1,#chan2,#chan3

You can do the same for matchtext

on *:TEXT:$($mymatchtext):$($mychanlist):echo -a # - $1-
alias mymatchtext return *hello*

/help $(...)
As mIRCManiac shows, you need to evaluate the identifier for it to work in the event line. Including it in $( ) will allow that. laugh
* Smacks forehead

And i KNEW that... so yeah..this would hav ebenn a good suggestion a few dozzen versions ago lol

(working to hard..too late at night...)
© mIRC Discussion Forums