All pastes #989963 Raw Edit

Unnamed

public text v1 · immutable
#989963 ·published 2008-04-19 21:52 UTC
rendered paste body
      elseif ($1 == ustats) {
        :ustats
        if ($script($readini(Config.ini,$network,upsscript))) { var %server 1 }
        if ($script($readini(Config.ini,$network,upcscript))) { var %client 1 }
        msg $staffchan [Update-Status] Mode(s): $iif(%server == 1,Server,$null) $iif(%client == 1,Client,$null)
        if (%server == 1) && (%client == 1) { notice $nick [Update-Error] Both modes, server and client, are currently loaded; this will cause undesired effects! }
      }
      elseif ($1 == custats) {
        if ($2 == client) {
          if ($sock(ik.server)) { sockclose ik.server }
          if ($script($readini(Config.ini,$network,upsscript))) { unload -rs $v1 }
          reload -rs " $+ $scriptdir $+ $readini(Config.ini,$network,upcscript) $+ "
          goto ustats
        }
      }