Advertisement
westor

!CheckMod for VitruxPT v1.0

Jan 30th, 2015
425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.72 KB | None | 0 0
  1. ON !*:TEXT:!*:#: {
  2.   if ($1 == !checkmod) || ($1 == !checkmoderator) || ($1 == !modcheck) {
  3.     if (!$2) { .msg $chan ( $+ $nick $+ ): Error, Please specify a nickname! | return }
  4.     var %ch = $checkif_mod($2,$chan)
  5.     if (!%ch) { .msg $chan ( $+ $nick $+ ): The $qt($2) is NOT an Channel Moderator! | return }
  6.     elseif (%ch) { .msg $chan ( $+ $nick $+ ): The $qt($2) is an Channel Moderator! | return }
  7.   }
  8. }
  9.  
  10. alias checkif_mod {
  11.   if (!$1) { return }
  12.   if (!$2) { return }
  13.   if ($me !ison $2) { return 0 }
  14.   if ($1 !ison $2) { return 0 }
  15.   var %f = mods.txt
  16.   if (!$isfile(%f)) { return 0 }
  17.   if (!$lines(%f)) { return 0 }
  18.   var %r = $read(%f,nw,$1)
  19.   if (%r) { return 1 }
  20.   elseif (!%r) { return 0 }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement