Hi i'm keeping track of users actions using their host: getchanhost nick
but then some automated tasks can happen which requires a notice to then be sent to all the users logged in the script, here i need to be able to convert their host back into the nick that is on the channel, doing all this as they may change their nick and i still need to identify them.
Is there an opposite function to getchanhost or a better way to do it?
No, it doesnt, and i'm messing about with this so that if the user changes their nick the script can still msg them, i have their original nick stored but if they change it then any messages to their original nick with just get lost in space so need a fresh nick for them!
bind nick -|- {*} nickch
proc nickch {nick uhost hand chan newnick} {
# code here to check if users host/nick is in the list of hosts/nicks
# code here to change the nick for the host
}