This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
-
crux
- Voice
- Posts: 35
- Joined: Fri Jan 05, 2007 12:41 pm
- Location: Myanmar
-
Contact:
Post
by crux »
hello
I want a little code to kill users, who r trying to part from a specified channel.
-
metroid
- Owner
- Posts: 771
- Joined: Wed Jun 16, 2004 2:46 am
Post
by metroid »
Code: Select all
bind part -|- * part:kill
proc part:kill {nickname hostname handle channel reason} {
if {[string equal $channel #mylamechannel]} {
putquick "KILL $nickname :Don't part $channel."
}
}
-
crux
- Voice
- Posts: 35
- Joined: Fri Jan 05, 2007 12:41 pm
- Location: Myanmar
-
Contact:
Post
by crux »
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.
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »
Code: Select all
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.
Last edited by
Sir_Fz on Sat Jan 13, 2007 9:39 pm, edited 1 time in total.
-
crux
- Voice
- Posts: 35
- Joined: Fri Jan 05, 2007 12:41 pm
- Location: Myanmar
-
Contact:
Post
by crux »
Thanks you much.