Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub opKick(){
- my($user, $target) = @_; # name of person issuing ban, and person being banned
- if (odch::get_type($user) >= 16){ # check whether "$user" is an op or not
- if(&usrExists($target)){ # make sure the person being banned exists on the hub
- &usrMsg($user, "Kicking $target."); # send a msg to $user
- &usrMsg($target, "You have been kicked from the hub."); # send a msg to $target user
- #&usrKick($target);
- return(1); # return success
- }
- else { &usrMsg("Target user not found."); return(0); }
- }
- else{ &usrMsg("You do not have sufficent access rights."); return(0); }
- }
Add Comment
Please, Sign In to add comment