| View previous topic :: View next topic |
| Author |
Message |
StarLion Voice
Joined: 20 Dec 2005 Posts: 16
|
Posted: Thu Dec 25, 2008 7:09 pm Post subject: Nick Binds triggering multiple times? |
|
|
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? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Dec 25, 2008 8:00 pm Post subject: |
|
|
| Code: | 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])]
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|