All pastes #486505 Raw Edit

LO_KEY

public text v1 · immutable
·published 2007-05-13 22:31 UTC
rendered paste body
on *:TEXT:!vhost*:#vhosts: {
  if ($network == FNX) {
    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  (*fen1x.net* iswm $2) || (*admin* iswm $2) || (*oper* iswm $2) { msg $chan 8I dont think so!! | halt }
      msg hostserv set $nick %vhost
      chghost $nick %vhost
    }
    elseif ($2 == help) || ($ == $null) { 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-  Enjoy! | halt }
    msg %vhost.chan $1-
  } 
}