| View previous topic :: View next topic |
| Author |
Message |
CooLB0Y Voice

Joined: 26 Mar 2004 Posts: 29 Location: Australia
|
Posted: Wed Sep 07, 2005 8:37 am Post subject: Enforcebans |
|
|
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 |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Sep 07, 2005 9:39 am Post subject: |
|
|
| Code: | 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. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
CooLB0Y Voice

Joined: 26 Mar 2004 Posts: 29 Location: Australia
|
Posted: Wed Sep 07, 2005 9:57 am Post subject: |
|
|
| Thanks, what about if i want to add the banned ip to the kick reasson? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
CooLB0Y Voice

Joined: 26 Mar 2004 Posts: 29 Location: Australia
|
Posted: Wed Sep 07, 2005 10:30 am Post subject: |
|
|
Thank you  |
|
| Back to top |
|
 |
|