Ok, when I upgraded to mIRC 6.17, there were a few errors in my scripts, mostly due to the $regsub no longer allowing $1 in place of \1.
Anyway, there was one error that started happening that I haven't been able to understand yet. The error occurs when ChanServ says a certain type of message in a channel. Before switching to 6.17 the script worked with no problem, but now it doesn't unless I alter it.
Here is the code that I have been testing the script with on a blank copy of mIRC.
on ^*:TEXT:U & & & *:#channel:{
echo 3 # MATCH from $nick $+ : $1-
haltdef
}
on ^*:TEXT:*:#channel:{
echo 4 # NO MATCH from $nick $+ : $1-
haltdef
}
(The channel name has been changed. I don't know if that will affect the bug or not.)
The message that is triggering the code is this:
U (irc.theserver.net) genius_test genius@my.host.net [ genius ]
(Sensitive information has also been changed.)
This is what happens when the above message is sent by ChanServ and by my other client in the same channel:
[color:red]NO MATCH from ChanServ: U (irc.theserver.net) genius_test genius@my.host.net [ genius ][/color]
[color:green]MATCH from genius_0001: U (irctheserver.net) genius_test genius@my.host.net [ genius ][/color]
Here is the debug:
<- :ChanServ!services@theserver.net PRIVMSG #channel :U (irc.theserver.net) genius_test genius@my.host.net [ genius ]
<- :genius_0001!genius@my.host.net PRIVMSG #channel :U (irc.theserver.net) genius_test genius@my.host.net [ genius ]
Now, if I change the code to this:
on ^*:TEXT:U *:#adminwatch:{
echo 3 # MATCH from $nick $+ : $1-
haltdef
}
on ^*:TEXT:*:#adminwatch:{
echo 4 # NO MATCH from $nick $+ : $1-
haltdef
}
(notice the difference in the first matchtext)
I get this:
[color:green]MATCH from ChanServ: U (irc.theserver.net) genius_test genius@my.host.net [ genius ]
MATCH from genius_0001: U (irc.theserver.net) genius_test genius@my.host.net [ genius ][/color]
Does anyone have any idea why this could be happening? I'm thinking it is a bug that cropped up due to some feature that was added in 6.17. (/me curses Unicode :P)
-genius_at_work