Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ON !*:TEXT:!*:#: {
- if ($1 == !checkmod) || ($1 == !checkmoderator) || ($1 == !modcheck) {
- if (!$2) { .msg $chan ( $+ $nick $+ ): Error, Please specify a nickname! | return }
- var %ch = $checkif_mod($2,$chan)
- if (!%ch) { .msg $chan ( $+ $nick $+ ): The $qt($2) is NOT an Channel Moderator! | return }
- elseif (%ch) { .msg $chan ( $+ $nick $+ ): The $qt($2) is an Channel Moderator! | return }
- }
- }
- alias checkif_mod {
- if (!$1) { return }
- if (!$2) { return }
- if ($me !ison $2) { return 0 }
- if ($1 !ison $2) { return 0 }
- var %f = mods.txt
- if (!$isfile(%f)) { return 0 }
- if (!$lines(%f)) { return 0 }
- var %r = $read(%f,nw,$1)
- if (%r) { return 1 }
- elseif (!%r) { return 0 }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement