egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

error kline

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Bader
Voice


Joined: 12 Mar 2005
Posts: 35

PostPosted: Thu Jan 19, 2006 6:55 pm    Post subject: error kline Reply with quote

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 Laughing
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Jan 19, 2006 9:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ian-Highlander
Op


Joined: 24 Sep 2001
Posts: 165
Location: Ely, Cambridgeshire

PostPosted: Fri Jan 20, 2006 11:21 am    Post subject: Reply with quote

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 Wink
_________________
"Insanity Takes Its Toll, Please Have Exact Change"
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
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


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber