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.

.boot tcl vs. onwers and vs. permowners

Old posts that have not been replied to for several years.
Locked
S
StelxBG

.boot tcl vs. onwers and vs. permowners

Post by StelxBG »

hiez :) Merry Christmas and Happy New Year (in advance) 2 all

I want a tcl with which I can .boot proba .. but not to be able to .boot StelxBG ... where proba is a user added with +n flag .. and StelxBG is perm. owner :)

< .boot proba
> You can't boot a bot owner.

< .boot StelxBG
> You cannot use this command vs. perm. owners

proba +n
StelxBG +n + .set owners "StelxBG"

[c0d3]
unbind dcc - boot *dcc:boot

bind dcc m boot dcc:boot

proc dcc:boot {hand idx arg} {
set arg [split $arg]

if {[llength $arg] != 0} {
set target [lindex [split [lindex $arg 0] @] 0]
if {$target != "" && [ispermowner $target]} {
putidx $idx "You cannot use this command vs perm owners!"
return 1
}
}
*dcc:boot $hand $idx $arg
}

## from alltools.tcl
proc ispermowner {hand} {
global owner

regsub -all -- , [string tolower $owner] "" owners
if {([matchattr $hand n]) && \
([lsearch -exact $owners [string tolower $hand]] != -1)} then {
return 1
}
return 0
}
[c0d3]
Locked