| View previous topic :: View next topic |
| Author |
Message |
Bader Voice
Joined: 12 Mar 2005 Posts: 35
|
Posted: Thu Jan 19, 2006 6:55 pm Post subject: error kline |
|
|
anyone edit this tcl,
| Code: | # Kline Command
proc proc_kline {text} {
set time [lindex $text 0]
set ip [lindex $text 1]
set reason [lrange $text 2 end]
putserv "KLINE $time $ip $reason"
putlog "-=\002$nick\002=- Klined this ip: $ip ,for $reason ,for time (mins): $time" }
bind pub m|m !kline proc_kline |
i try to make it, like if i said on the channel,
!kline time *@ip reason
the bot klined the ip with the reason,,
thanks  |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Jan 19, 2006 9:06 pm Post subject: |
|
|
| Code: | bind pub m|m !kline proc_kline
proc proc_kline {nick uhost hand chan arg} {
set time [lindex [set arg [split $arg]] 0]
set ip [lindex $arg 1]
set reason [join [lrange $arg 2 end]]
putserv "KLINE $time $ip $reason"
putlog "-=\002$nick\002=- Klined this ip: $ip ,for $reason ,for time (mins): $time"
} |
Edit: extra brace removed, thanx Ian-Highlander. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts
Last edited by Sir_Fz on Fri Jan 20, 2006 11:35 am; edited 1 time in total |
|
| Back to top |
|
 |
Ian-Highlander Op
Joined: 24 Sep 2001 Posts: 165 Location: Ely, Cambridgeshire
|
Posted: Fri Jan 20, 2006 11:21 am Post subject: |
|
|
| Sir_Fz wrote: | | Code: | bind pub m|m !kline proc_kline
proc proc_kline {nick uhost hand chan arg} {
set time [lindex [set arg [split $arg]] 0]
set ip [lindex $arg 1]
set reason [join [lrange $arg 2 end]]
putserv "KLINE $time $ip $reason"
putlog "-=\002$nick\002=- Klined this ip: $ip ,for $reason ,for time (mins): $time" }
} |
|
Might want to take the extra curly bracket off the end of the putlog line  _________________ "Insanity Takes Its Toll, Please Have Exact Change" |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|