egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

.boot tcl vs. onwers and vs. permowners

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
StelxBG
Guest





PostPosted: Fri Dec 26, 2003 10:29 am    Post subject: .boot tcl vs. onwers and vs. permowners Reply with quote

hiez Smile 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 Smile

< .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]
Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber