| View previous topic :: View next topic |
| Author |
Message |
sdays Halfop
Joined: 21 Oct 2006 Posts: 98
|
Posted: Thu Jul 26, 2007 5:33 pm Post subject: deop rm help |
|
|
Okay, when a op on bot deops a guest he removes op and kbs him, i want this to work only when a user deops bot owner or master
| Code: |
setudef flag deoprm
bind mode - "* -o" deop:rm
proc deop:rm {nick uhost hand chan mc deop} {
if {[channel get $chan deoprm] && ![matchattr $hand nmb|nmb $chan]} {
set banmask *!*@[lindex [split [getchanhost $nick $chan] @] 1]
catch {deluser $hand}
save
putlog "Removed $hand Reason: Deoped bot or a admin on $chan."
putserv "MODE $chan -o+b $nick $banmask"
putserv "kick $chan $nick :Cya loser."
}
}
|
|
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri Jul 27, 2007 2:36 pm Post subject: |
|
|
| Code: | setudef flag deoprm
bind mode - "* -o" deop:rm
proc deop:rm {nick uhost hand chan mc deop} {
if {[channel get $chan deoprm] && ![matchattr $hand nmb|nmb $chan] && [matchattr [nick2hand $deop $chan] nm|nm $chan]} {
set banmask *!*@[lindex [split [getchanhost $nick $chan] @] 1]
catch {deluser $hand}
save
putlog "Removed $hand Reason: Deoped bot or a admin on $chan."
putserv "MODE $chan -o+b $nick $banmask"
putserv "kick $chan $nick :Cya loser."
}
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|