| View previous topic :: View next topic |
| Author |
Message |
natter Voice
Joined: 02 Sep 2005 Posts: 4
|
Posted: Fri Sep 02, 2005 12:19 pm Post subject: no manual op TCL HELP !!! |
|
|
I create a simple tcl to prevent manual op on chan :
| Code: |
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 ? |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Sep 02, 2005 12:28 pm Post subject: |
|
|
| just add [matchattr] check for victim in that if |
|
| Back to top |
|
 |
natter Voice
Joined: 02 Sep 2005 Posts: 4
|
Posted: Fri Sep 02, 2005 12:32 pm Post subject: |
|
|
| How ? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
natter Voice
Joined: 02 Sep 2005 Posts: 4
|
Posted: Fri Sep 02, 2005 12:47 pm Post subject: |
|
|
| Code: |
if {([matchattr nick2hand $victim b]) || ([matchattr nick2hand $victim n])}
|
im a newbie  |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri Sep 02, 2005 12:52 pm Post subject: |
|
|
I gave you the command with brackets, yet you managed to remove them
| Code: | | if {([matchattr [nick2hand $victim] b]) || ([matchattr [nick2hand $victim] n])} { |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|