Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:text:!owner*:#: {
- if ($1 == !adduser && $nick == Hamo) {
- if ($2) {
- if ($2 ison $chan) {
- if ($2 !isin $read(owners.txt,w, $2)) {
- write owners.txt $2
- msg $chan User has been added to the owner list
- }
- else { msg $chan This user already is a bot owner }
- }
- else { msg $chan This user is not in the channel }
- }
- else { msg $chan 4Usage:1 !adduser <nick> }
- }
- elseif ($1 == !adduser) { msg $chan You cannot use this command }
- }
- on *:text:!deowner*:#: {
- if ($1 == !deluser && $nick == Hamo) {
- if ($2) {
- if ($2 isin $read(owners.txt,w, $2)) {
- write -dl $+ $readn owners.txt
- msg $chan User has been deleted out of the owner list
- }
- else { msg $chan This user is not a bot owner }
- }
- else { msg $chan 4Usage:1 !deluser <nick> }
- }
- elseif ($1 == !deluser) { msg $chan You cannot use this command }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement