egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting nick from host

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
mikep
Voice


Joined: 29 Mar 2007
Posts: 3

PostPosted: Thu Mar 29, 2007 1:17 pm    Post subject: Getting nick from host Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Thu Mar 29, 2007 1:42 pm    Post subject: Reply with quote

I don't suppose the stored host does not contain the nick-part?
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
mikep
Voice


Joined: 29 Mar 2007
Posts: 3

PostPosted: Thu Mar 29, 2007 2:37 pm    Post subject: Reply with quote

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. Smile
Back to top
View user's profile Send private message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Thu Mar 29, 2007 2:42 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
mikep
Voice


Joined: 29 Mar 2007
Posts: 3

PostPosted: Thu Mar 29, 2007 3:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber