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 

bind chon problem

 
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
eteocle
Guest





PostPosted: Fri Sep 28, 2001 12:21 pm    Post subject: Reply with quote

Im trying to write a script, that ask a second password, when connecting to partyline and when user flags are m or n
please help me my proc adminchk always never stop
###########
bind chon - * adminchk

proc adminchk {hand idx} {
if {[matchattr $hand n] == "1" } {
putidx $idx "Admin check, please enter your code" ; control $idx adminpass
} elseif {[matchattr $hand m] == "1" } {
putidx $idx "Admin check, please enter your code" ; control $idx adminpass
} else {
onpartylinejoin [idx2hand $idx] $idx;
}
}

proc adminpass {idx password} {
global nick
if {$password == ""} {; return 0 }
if {[encrypt $password $password]!= "tc6vV.oBehV1gmLeU/qMK8v."} {
putidx $idx "wrong password, Access Denied!"
dccbroadcast "ACCESS DENIED to [idx2hand $idx] , trying to admin"
killdcc $idx
return 1
}
onpartylinejoin [idx2hand $idx] $idx
return 1
}

proc onpartylinejoin {hand idx} {
global nick botnick botnet_version botnet_id thehand
set theidx $idx
set thehand $hand
if {[matchattr $thehand n]} {
putdcc $theidx "${logo} [b]*[b] Your Level is Owner"
dccbroadcast "${logo} [idx2hand $idx] is Owner --> ${botnick}"
} elseif {[matchattr $thehand m]} {
putdcc $theidx "${logo} [b]*[b] Your Level is Master"
dccbroadcast "${logo} [idx2hand $idx] is Master --> ${botnick}"
} elseif {[matchattr $thehand o]} {
putdcc $theidx "${logo} [b]*[b] Your Level is Operator:"
dccbroadcast "${logo} [idx2hand $idx] is Operator --> ${botnick}"
} else {
putdcc $theidx "${logo} [b]*[b] Your Level is Guest:"
dccbroadcast "${logo} [idx2hand $idx] is Guest --> ${botnick}"
}
}

proc b {} {
return \002
}

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