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.

How to exclude +f users from been kicked

Help for those learning Tcl or writing their own scripts.
Post Reply
m
mp35486
Voice
Posts: 8
Joined: Thu Jun 09, 2005 9:54 am

How to exclude +f users from been kicked

Post by mp35486 »

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.
n
nANDu
Voice
Posts: 15
Joined: Sun May 22, 2005 1:05 am

Post by nANDu »

find this [matchattr $hand o|o $chan] and replace it with [matchattr $hand of|of $chan]
m
mp35486
Voice
Posts: 8
Joined: Thu Jun 09, 2005 9:54 am

Post by mp35486 »

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.
Post Reply