Advertisement
illpastethat

Registration Check nickserv bulldog

Dec 28th, 2013
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.53 KB | None | 0 0
  1. on $owner:TEXT:!idle*:#:{ set %Channel $chan | set %idle 1 | set %Nick $strip($2)
  2.   spamprotect
  3.   exprotect $1-
  4.   if ( %Nick != $Null ) {
  5.     .whois $2
  6.   }
  7. }
  8.  
  9.  
  10. RAW 317:*:{
  11.   if ( %idle == 1 ) {
  12.     msg %Channel %Nick has been idling for $duration($3,1) $+ .
  13.     unset %idle
  14.     unset %Channel
  15.     unset %Nick
  16.     haltdef
  17.   }
  18. }
  19.  
  20.  
  21. On *:TEXT:!regchk*:#:{ set %chan $chan | set %Nick $strip($2) | set %regchk 1
  22.   spamprotect
  23.   exprotect $1-
  24.   if ( %Nick != $Null ) {
  25.     .timerregchk 1 2 msg $chan $2 isn't registered
  26.     .whois $2
  27.   }
  28. }
  29. raw 379:*: {
  30.   if ($network == NetKings) && (r isin $3-) && (%regchk == 1) { /msg %chan $2 is currently registered. | haltdef }
  31.   else {
  32.     msg %chan $2 is not registered.
  33.   haltdef }
  34. }
  35.  
  36. raw 307:*: {
  37.   if (%regchk == 1) { timerregchk off | /msg %chan $2 is currently registered. }
  38. }
  39.  
  40. alias nothere {
  41.   set %chan $chan
  42.   set %check.on on
  43.   set %nick $nick
  44.   elseif (!$2) {
  45.     msg %chan Enter valid input dumbass. | halt
  46.   }
  47. }
  48.  
  49. raw 401:*: {
  50.   if (No such isin $3-) && (%check.on == on) {
  51.     msg %chan $hget(whois,chan) No such nick: $+($2,.)
  52.   }
  53. }
  54.  
  55. raw 482:*: {
  56.   if (You must have isin $3-) || (You're not channel isin $3-) {
  57.     msg %chan $hget(whois,chan) Invalid privileges.
  58.   }
  59. }  
  60. raw 403:*: {
  61.   if (No such isin $3-) {
  62.     msg %chan $hget(whois,chan) No such nick/channel: $+(%nick,.)
  63.   }
  64. }
  65. raw 499:*: {
  66.   if (You're not a isin $3-) {
  67.     msg %chan $hget(whois,chan) Invalid privileges.
  68.   }
  69.   unset %chan | unset %check.on | unset %nick
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement