All pastes #486496 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-05-13 22:25 UTC
rendered paste body
on *:TEXT:!vhost*:#vhosts: {
  if (FNX isin $network) {
    ;    if (o !isin $usermode) { msg $chan Sorry Vhosts not available just now, please try again later | halt }
    if ($2 != help) {
      var %vhost = $2
      %vhost.chan = $chan
      if  (FNX.net isin $2) { msg $chan 8I dont think so!! | halt }
      msg hostserv set $nick %vhost
    }
    elseif ($2 == help) { msg $chan type !vhost followed by the hostmask you want to set. Must be in the form of a valid domain eg 4this.is.my.new.vhost.net }
  }
}
on *:input:#vhosts: {
  if (FNX isin $network) {
    if  ($1 == !vhost) {
      ;      if (o !isin $usermode) { msg $chan Sorry Vhosts not available just now, please try again later | halt }
      if ($2 != help) {
        var %vhost = $2
        %vhost.chan = $chan
        if  (FXN isin $2) { msg $chan 8I dont think so!! | halt }
        msg hostserv set $nick %vhost
      }
      elseif ($2 == help) { msg $chan type !vhost followed by the hostmask you want to set. Must be in the form of a valid domain eg 4this.is.my.new.vhost.net}
      }
    }
  }
  on *:NOTICE:*:*: {
    if ($nick == Hostserv) {
      if (is now activated isin $1-) { halt }
      if (syntax isin $1-) { msg %vhost.chan A vhost must be in the format of a valid hostmask. | halt }
      if (set to isin $1-) { msg %vhost.chan $1-  Type /msg hostserv on to activate it. | halt }
      msg %vhost.chan $1-
    }