update:
The problem of handling guest nicks might also be how networks create guest nicks. It seems that your script assumes that they always have a 5 digit number, but my experience with guest nicks is that the number is UP TO 5 digits, and it's not rare at many networks to see 'guest' followed by a 3 or 4 digit number. If your network can sometimes have nicks being like MindUser1234 MindUser123 etc, then should change like
from:
if (MindUser????? iswm $2)
to:
if (MindUser* iswm $2)
While this would also match MindUserZilla etc, that's collateral damage, lol, though the original mask was also matching GuestABCDE
Only numbers goes after MindUser and only 5 digits. So: do I have to create a remote and and add an alias?
Thanks for help sir