if {[matchattr $dragon(victim) omn $conchan] == 1} {
putlog "Unable to kick $dragon(victim). User is a registered Botnet Operator/Master/Administrator. Please place direct complaint to Founder/sucessor or use the standard kick command"
return 0
}
Well, this is part of the validation for a partyline based kick script. What i want is it to prevent the kicking of any registered op/master/owner on the bot. Problem is, when this is in the script, it allows ops to be kicked, and when i swap the logic around, everyone is a op according to the script.
matchattr <handle> <flags> [channel]
Returns: 1 if the specified user has the specified flags; 0 otherwise
Module: core
this is the reference i have used. Am completely bewildered why this is screwing up on me
well you could use getuser to get the host known to the eggdrop...
another option is to use hand2nick to get the nickname of the handle given, then use getchanhost on the nick to get the uhost.... this ofcourse only works if the handle/nick actually is on any of the bots channels