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.
Old posts that have not been replied to for several years.
-
Rusher2K
- Halfop
- Posts: 88
- Joined: Fri Apr 18, 2003 10:45 am
- Location: Germany
-
Contact:
Post
by Rusher2K »
Hello I get the error :
[20:24] Tcl error [kickcheck]: unknown math function "kick"
Here is the Code :
Code: Select all
bind kick "-" "% *" kickcheck
proc kickcheck {nick host hand chan victim reason} {
global kick
putlog "start"
if {![matchattr $hand m|m $chan] && $nick != $botnick } {
if {![info exists kick($chan)]} {
putlog "1"
set kick($chan) 1
putlog "2"
utimer 3 [list unset kick($chan)]
putlog "3"
} else {
incr kick($chan)
putlog "4"
}
if { kick($chan) >= 5 } {
putlog "5"
if {[onchan Q $chan]} {
putlog "6Q"
putquick "PRIVMSG Q :deopall $chan"
putserv "PRIVMSG $chan: Channel Cleared do Kick Flood"
}
if {[onchan L $chan]} {
putlog "6L"
putquick "PRIVMSG L :deopall $chan"
putserv "PRIVMSG $chan: Channel Cleared do Kick Flood"
}
}
}
putlog "7"
}
The Bot show me no Putlog have you any idea ? :/
-
GodOfSuicide
- Master
- Posts: 463
- Joined: Mon Jun 17, 2002 8:00 pm
- Location: Austria
Post
by GodOfSuicide »
if { kick($chan) >= 5 } {
you call a var -> $kick($chan)
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »
also another error in your code, add botnick to your global line or use $::botnick instead.