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.

no manual op TCL HELP !!!

Old posts that have not been replied to for several years.
Locked
n
natter
Voice
Posts: 4
Joined: Fri Sep 02, 2005 12:12 pm

no manual op TCL HELP !!!

Post by natter »

I create a simple tcl to prevent manual op on chan :

Code: Select all

bind mode - *+o* no_manual_op

proc no_manual_op {nick uhost hand chan mode victim} {

        if {([matchattr $hand b]) || ([matchattr $hand n])} {
        putlog "Manual OP on $chan by $nick for $victim"
        } else {
        putserv "MODE $chan -o $nick"
        }
}
If user without n/b flag can Manual op other user ...

now ...

I want to add this check :

if opped user are n/b stay opped , else is deopped


Can you help me please ?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

just add [matchattr] check for victim in that if
n
natter
Voice
Posts: 4
Joined: Fri Sep 02, 2005 12:12 pm

Post by natter »

How ?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

[nick2hand $victim]
n
natter
Voice
Posts: 4
Joined: Fri Sep 02, 2005 12:12 pm

Post by natter »

Code: Select all

if {([matchattr nick2hand $victim b]) || ([matchattr nick2hand $victim n])}
im a newbie :lol:
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

I gave you the command with brackets, yet you managed to remove them :P

Code: Select all

if {([matchattr [nick2hand $victim] b]) || ([matchattr [nick2hand $victim] n])} {
Locked