I want to check an ON INPUT string for the /server command in order to filter out the password.
According to the PCRE specifications I would have to execute this expression:
/\d{3,5} (\S+)/Now mIRC does not know this.
on *:input:*:{
if ($left($1,7) == $readini($mircini,text,commandchar) $+ server) {
echo $regex($1-, /\d{3,5} (\S+)/)
}
}
echoes 0.
on *:input:*:{
if ($left($1,7) == $readini($mircini,text,commandchar) $+ server) {
echo $regex($1-, /\d\d\d+ (\S+)/)
}
}
echoes 1.
I am pretty sure this is wrong.