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 

Part kill

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
crux
Voice


Joined: 05 Jan 2007
Posts: 35
Location: Myanmar

PostPosted: Sat Jan 13, 2007 1:09 pm    Post subject: Part kill Reply with quote

hello
I want a little code to kill users, who r trying to part from a specified channel.
_________________
Myanmar Chat Online
MCO Chat
Back to top
View user's profile Send private message Visit poster's website
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Sat Jan 13, 2007 1:26 pm    Post subject: Reply with quote

Code:
bind part -|- * part:kill

proc part:kill {nickname hostname handle channel reason} {
  if {[string equal $channel #mylamechannel]} {
    putquick "KILL $nickname :Don't part $channel."
  }
}
Back to top
View user's profile Send private message
crux
Voice


Joined: 05 Jan 2007
Posts: 35
Location: Myanmar

PostPosted: Sat Jan 13, 2007 6:11 pm    Post subject: Reply with quote

Thanks alot ..

then bro.. I'm bot owner and I wanna control this tcl from public command...
example !kill on/off
how to bro? .. please help me.
_________________
Myanmar Chat Online
MCO Chat
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Jan 13, 2007 6:38 pm    Post subject: Reply with quote

Code:
bind pub n|n !kill kill:onoff
bind part -|- * part:kill

set killon 1

proc part:kill {nickname hostname handle channel reason} {
  if {$::killon && [string equal $channel #mylamechannel]} {
    putquick "KILL $nickname :Don't part $channel."
  }
}

proc kill:onoff {nick uhost hand chan arg} {
 set s [string tolower [lindex [split $arg] 0]]
 set ::killon [expr {($s == "on")}]
}


Edit: Just removed useless code.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts


Last edited by Sir_Fz on Sat Jan 13, 2007 9:39 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
crux
Voice


Joined: 05 Jan 2007
Posts: 35
Location: Myanmar

PostPosted: Sat Jan 13, 2007 9:36 pm    Post subject: Reply with quote

Thanks you much.
_________________
Myanmar Chat Online
MCO Chat
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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