Code: Select all
Here's the requested code from the pastebin:
Wrap Lines Use Line Numbers
bind msg -|fpm command command
proc command {nick uhost hand args} {
global botnick
set thechan "#chan"
set passed_data [lrange [lindex $args 0] 0 end]
set arg1 [lindex [lindex $args 0] 0]
set cmd [lindex [lindex $args 0] 0]
set arg2 [lindex [lindex $args 0] 1]
set arg3 [lindex [lindex $args 0] 2]
set arg4 [lindex [lindex $args 0] 3]
if { $cmd == "addban"} {
newchanban $thechan $arg2 $nick $arg4 $arg3
}
to set add a ban to the bots banlist (like .+ban .....)
Could somebody help me please correct my syntax?