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.
Old posts that have not been replied to for several years.
CooLB0Y
Voice
Posts: 29 Joined: Fri Mar 26, 2004 2:06 pm
Location: Australia
Post
by CooLB0Y » Wed Sep 07, 2005 8:37 am
I wanted to ask if there is a way to make a tcl simillar to +enforcebans, with +enforcebans the kick msg shows like this:
[16:36] * CooLB0Y sets mode: +b *!*@221.9.111.127
[16:36] * girl222 was kicked by OmanServ (Banned)
i want the kick reasson to be: girl222 was kicked by OmanServ (Banned by: CooLB0Y).
thanks,
Zadjali
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Wed Sep 07, 2005 9:39 am
Code: Select all
bind mode - "* +b" enforcebans
proc enforcebans {nick uhost hand chan mc ban} {
foreach n [chanlist $chan] {
if {[string match -nocase $ban $n![getchanhost $n $chan]]} {
putkick $chan $n "$n was kicked $::botnick (banned by: $nick)"
}
}
}
Edit: $::botnick instead of OmanServ.
CooLB0Y
Voice
Posts: 29 Joined: Fri Mar 26, 2004 2:06 pm
Location: Australia
Post
by CooLB0Y » Wed Sep 07, 2005 9:57 am
Thanks, what about if i want to add the banned ip to the kick reasson?
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Wed Sep 07, 2005 10:21 am
$ban is the banned ip.
CooLB0Y
Voice
Posts: 29 Joined: Fri Mar 26, 2004 2:06 pm
Location: Australia
Post
by CooLB0Y » Wed Sep 07, 2005 10:30 am
Thank you