Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on *:text:!vhost *:*:{
- if ($istok($leafops,$nick,44)) {
- if ($3 == $null) {
- notice $nick Syntax: !vhost <nick> <the.vhost>
- }
- elseif ($strip($3) == $3) {
- notice $nick That vhost doesn't have any color. Please direct the user to request it in #vhost
- }
- else {
- var %vhost $iif($right($3,1) == ,$3,$3 $+ )
- .writeini -n LeafVhost.ini $2 vhost %vhost
- notice $nick Success. Set $2 vhost to %vhost $+ . After identification it will be auto set.
- chghost $2 %vhost
- notice $2 Congrats. You've been added to the VIP list - your vhost has been set to %vhost $+ .
- }
- }
- }
- alias leafops {
- return nick1,zzbooze,phatninja55,rizadon,horsec
- }
- on *:text:*identified for nick*:#services:{
- if ($nick == Global) {
- var %nick $gettok($1-,$numtok($1-,32),32)
- var %vhost $readini(LeafVhost.ini,n,%nick,vhost)
- if (%vhost != $null) {
- chghost %nick %vhost
- notice %nick Congrats. You're on the VIP list - your vhost has been set to %vhost $+ .
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement