| View previous topic :: View next topic |
| Author |
Message |
mikep Voice
Joined: 29 Mar 2007 Posts: 3
|
Posted: Thu Mar 29, 2007 1:17 pm Post subject: Getting nick from host |
|
|
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?
Thanks
Mike |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Thu Mar 29, 2007 1:42 pm Post subject: |
|
|
I don't suppose the stored host does not contain the nick-part? _________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
mikep Voice
Joined: 29 Mar 2007 Posts: 3
|
Posted: Thu Mar 29, 2007 2:37 pm Post subject: |
|
|
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!
Thanks anyway.  |
|
| Back to top |
|
 |
r0t3n Owner
Joined: 31 May 2005 Posts: 507 Location: UK
|
Posted: Thu Mar 29, 2007 2:42 pm Post subject: |
|
|
Why not bind on nick change...
| Code: | 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
} |
_________________ r0t3n @ #r0t3n @ Quakenet |
|
| Back to top |
|
 |
mikep Voice
Joined: 29 Mar 2007 Posts: 3
|
Posted: Thu Mar 29, 2007 3:46 pm Post subject: |
|
|
Yeh, short of an actual function to do it which from your responses would indicate not i think the binding will be my best bet.
Thanks for your help. |
|
| Back to top |
|
 |
|