Advertisement
illpastethat

Color Vhost Saver zzbooze

Feb 10th, 2013
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 1.03 KB | None | 0 0
  1. on *:text:!vhost *:*:{
  2.   if ($istok($leafops,$nick,44)) {
  3.     if ($3 == $null) {
  4.       notice $nick Syntax: !vhost <nick> <the.vhost>
  5.     }
  6.     elseif ($strip($3) == $3) {
  7.       notice $nick That vhost doesn't have any color. Please direct the user to request it in #vhost
  8.     }
  9.     else {
  10.       var %vhost $iif($right($3,1) == ,$3,$3 $+ )
  11.       .writeini -n LeafVhost.ini $2 vhost %vhost
  12.       notice $nick Success. Set $2 vhost to %vhost $+ . After identification it will be auto set.
  13.       chghost $2 %vhost
  14.       notice $2 Congrats. You've been added to the VIP list - your vhost has been set to %vhost $+ .
  15.     }
  16.   }
  17. }
  18.  
  19. alias leafops {
  20.   return nick1,zzbooze,phatninja55,rizadon,horsec
  21. }
  22.  
  23. on *:text:*identified for nick*:#services:{
  24.   if ($nick == Global) {
  25.     var %nick $gettok($1-,$numtok($1-,32),32)
  26.     var %vhost $readini(LeafVhost.ini,n,%nick,vhost)
  27.     if (%vhost != $null) {
  28.       chghost %nick %vhost
  29.       notice %nick Congrats. You're on the VIP list - your vhost has been set to %vhost $+ .
  30.     }
  31.   }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement