Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.93 KB | None | 0 0
  1. on *:text:!owner*:#: {
  2.   if ($1 == !adduser && $nick == Hamo) {
  3.     if ($2) {
  4.       if ($2 ison $chan) {
  5.         if ($2 !isin $read(owners.txt,w, $2)) {
  6.           write owners.txt $2
  7.           msg $chan User has been added to the owner list
  8.         }
  9.         else { msg $chan This user already is a bot owner }
  10.       }
  11.       else { msg $chan This user is not in the channel }
  12.     }
  13.     else { msg $chan 4Usage:1 !adduser <nick> }
  14.   }
  15.   elseif ($1 == !adduser) { msg $chan You cannot use this command }
  16. }
  17. on *:text:!deowner*:#: {
  18.   if ($1 == !deluser && $nick == Hamo) {
  19.     if ($2) {
  20.       if ($2 isin $read(owners.txt,w, $2)) {
  21.         write -dl $+ $readn owners.txt
  22.         msg $chan User has been deleted out of the owner list
  23.       }
  24.       else { msg $chan This user is not a bot owner }
  25.     }
  26.     else { msg $chan 4Usage:1 !deluser <nick> }
  27.   }
  28.   elseif ($1 == !deluser) { msg $chan You cannot use this command }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement