But passing $nick as a parameter is the way to go, what you are looking for is just aesthetic.
You can't really ask such a feature here, you would be asking for a switch everytime it can simplify your code a bit for a specific situation.
Here it's about $nick but what if someone request the exact same thing for all the others local identifiers: $fulladdress $chan etc, would we add a new switch for these? We would pass those value as parameters...


#mircscripting @ irc.swiftirc.net == the best mIRC help channel