Code: Select all
proc Up { nick host hand chan text } {
if {[matchattr $hand n|n $chan]} {
putserv "MODE $chan +qaohv $nick $nick $nick $nick $nick"
} elseif {[matchattr $hand m|m $chan]} {
putserv "MODE $chan +aohv $nick $nick $nick $nick"
} elseif {[matchattr $hand o|o $chan]} {
putserv "MODE $chan +ohv $nick $nick $nick"
} elseif {[matchattr $hand h|h $chan]} {
putserv "MODE $chan +hv $nick $nick"
}
}
I don't know if this is why, but, each user don't have it's own handle. Each user that has access to the !up command is in a group which has a handle.
Example;
the handle Helpers has the host of *!*@Helper.CyberByteCafe.Co.CC, I want this group to be able to use !Up and only get +h
My problem is the bot is giving all modes (+qaohv)