This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Help for those learning Tcl or writing their own scripts.
-
StarLion
- Voice
- Posts: 16
- Joined: Tue Dec 20, 2005 6:15 pm
Post
by StarLion »
I have a command bound to nick (IE: Nickname changes) on all channels.
Whenever someone changes nicknames, this script triggers - once for every single channel the person and bot share.
Is there a way to limit this to a single execution per nick change?
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »
Code: Select all
bind nick - * nick:change
proc nick:change {nick uhost hand chan newnick} {
global nickchange
if {[info exists nickchange([string tolower $nick])]} {
return 0
}
# do whatever you want
set nickchange([string tolower $nick]) 1
utimer 5 [list unset nickchange([string tolower $nick])]
}