| View previous topic :: View next topic |
| Author |
Message |
suffering Voice
Joined: 27 May 2005 Posts: 27
|
Posted: Fri Aug 12, 2005 11:29 am Post subject: chan ctcp requwsts |
|
|
| hi, i want a simple tcl when smone use the channel ctcp command the bot ban(chan ban) and kick him from the channel. |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Aug 12, 2005 11:44 am Post subject: |
|
|
| Code: |
set r "no chan ctcps"
bind ctcp - * foo
proc foo {n u h d k t} {
if ![isbotnick $d] {
newchanban $d [maskhost $n!$u] $::nick $::r
putkick $d $n $::r
}
}
|
|
|
| Back to top |
|
 |
suffering Voice
Joined: 27 May 2005 Posts: 27
|
Posted: Mon Aug 15, 2005 6:27 pm Post subject: |
|
|
| thats one kicks also on /me actions... i only want for channel ctcp ... /ctcp #chan ping... and do not kick operators |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Mon Aug 15, 2005 6:55 pm Post subject: |
|
|
| /me is chan ctcp |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Mon Aug 15, 2005 8:14 pm Post subject: |
|
|
| Code: | set r "no chan ctcps"
bind ctcp - * foo
proc foo {n u h d k t} {
if {([string first # $d] != 0) || [string equal -nocase "action" $k]} {return 0}
if {![isbotnick $d] && ![isop $n $d]} {
newchanban $d [maskhost $n!$u] $::nick $::r
putkick $d $n $::r
}
} |
This will not kick for actions and will exempt channel ops. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|