| View previous topic :: View next topic |
| Author |
Message |
mp35486 Voice
Joined: 09 Jun 2005 Posts: 8
|
Posted: Tue Jan 03, 2006 4:18 am Post subject: How to exclude +f users from been kicked |
|
|
Hi!
I use chanpro2.2 tcl script which serves me just fine.
Recently I wanted to change it so the +f users on bots won't be kicked by this script.
The script has protectops but not protect +f users option.
What is the easiest way to implement this?
Here is the relevant if statement:
#checks if the user is an op, if so check if protect_ops is enabled
if {([matchattr $hand o|o $chan] || [isop $nick $chan]) && $chanpro(protect_ops)} {
if {$chanpro(warnings)} {putserv "[subst $chanpro(op_method)] :[subst $chanpro(op_caps)]"}
return 0
}
Any help is very welcomed.
Thnx!
--
M. |
|
| Back to top |
|
 |
nANDu Voice
Joined: 22 May 2005 Posts: 15
|
Posted: Tue Jan 03, 2006 5:21 am Post subject: |
|
|
| find this [matchattr $hand o|o $chan] and replace it with [matchattr $hand of|of $chan] |
|
| Back to top |
|
 |
mp35486 Voice
Joined: 09 Jun 2005 Posts: 8
|
Posted: Tue Jan 03, 2006 6:03 am Post subject: |
|
|
| nANDu wrote: | | find this [matchattr $hand o|o $chan] and replace it with [matchattr $hand of|of $chan] |
Thanks a lot!
This is what I wanted!
--
M. |
|
| Back to top |
|
 |
|