Hi, can anyone help me please, i'll appreciate it, sometime when i use kick command, and it shows spaces in a kick message, donot know why?
advance thanks
regards
AW
<AW> .k ABC tsk tsk
*** ABC was kicked by eggdrop (tsk tsk {})
here are the codes
proc kick_command {nick host handle channel args1} {
set args [split $args1 " "]
set knick [lindex $args 0]
set date [clock format [clock seconds] -format "%b %d"]
if {[test_real $nick]} {
return 0
}
if {$knick==""} { return 0 }
set reason [lrange $args 1 end]
if {$reason==""} {
set reason "..go and play outside!"
}
set kickstring "KICK $channel $knick :$date $nick: $reason"
if {[matchattr [nick2hand $knick $channel] o]==0} {
putserv "$kickstring"
} else {
if {[matchattr $handle m]==1} {
putserv "$kickstring"
} else {
set kickstring "KICK $channel $nick :Wow! Lamerrr! Ain't it amazin? (Kick attempt on +o $knick)"
putserv "$kickstring"
}
}
return 1
}