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 

.+ban and .kickban in a tcl script

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


Joined: 31 Jul 2006
Posts: 3

PostPosted: Mon Jul 31, 2006 12:05 pm    Post subject: .+ban and .kickban in a tcl script Reply with quote

Hello,

how could i use .+ban and .kickban in a tcl script?

I tried the following, but it doesn't work :/
Code:
####### kban proc #######
proc kban {nickname hostname handle channel arguments} {
    global botnick
    if {[lindex [split $arguments] 0] == $botnick} { return 0 }
    kickban $botnick kickban [lindex [split $arguments] 0] [lrange [split $arguments] 1 end]
}

####### pban proc #######
proc pban {nickname hostname handle channel arguments} {
    global botnick
    if {[lindex [split $arguments] 0] == $botnick} { return 0 }
    +ban [lindex [split $arguments] 0] [lrange [split $arguments] 1 end]
}


What shall i do?
Back to top
View user's profile Send private message
Nara
Halfop


Joined: 23 Jul 2006
Posts: 40

PostPosted: Mon Jul 31, 2006 12:20 pm    Post subject: Reply with quote

If I'm not mistaken, there's not an integrated ban command, so you have to putmode a +b hostmask and then a putkick on them.

As for +ban, if it's a channel ban, use newchanban. If it's a global ban, use newban.

~Nara
Back to top
View user's profile Send private message
krimson
Halfop


Joined: 19 Apr 2006
Posts: 86

PostPosted: Mon Jul 31, 2006 1:27 pm    Post subject: Reply with quote

@tucow: as Nara pointed out, dcc commands are not the same with tcl commands accepted by eggdrop. you should read tcl-commands.doc in your ~/docs folder
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