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.
Old posts that have not been replied to for several years.
-
natter
- Voice
- Posts: 4
- Joined: Fri Sep 02, 2005 12:12 pm
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 ?
-
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
-
natter
- Voice
- Posts: 4
- Joined: Fri Sep 02, 2005 12:12 pm
Post
by natter »
How ?
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »
-
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
-
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
Code: Select all
if {([matchattr [nick2hand $victim] b]) || ([matchattr [nick2hand $victim] n])} {