All pastes #91901 Raw Edit

Something

public text v1 · immutable
#91901 ·published 2006-07-19 01:06 UTC
rendered paste body
on 500:TEXT:$(%trigger $+ set*):#:{ 
  if ($2 == $null) {
    notice $nick you can set a variety of things
  }
  elseif ($2 == ip1) {
    set %ip1 $3
    Notice $nick Successfully set IP1 to %ip1 
  } 
  elseif ($2 == port1) {
    if ($nick isop $chan) {
      set %port1 $3
    Notice $nick Successfully set Port to %port1 } 
  } 
  elseif ($2 == news) {
    set %news $3- | dotopic 
    Notice $nick Successfully set News to %news  
  }
  elseif ($2 == commands) {
    set %commands $3-
    Notice $nick Successfully edited commands 
  }
  elseif ($2 == host1) {
    set %host1 $3
    Notice $nick Successfully set Host1 to %host1 
  } 
  elseif ($2 == host2) {
    set %host2 $3
    Notice $nick Successfully set Host2 to %host2
  } 
  elseif ($2 == host3) {
    set %host3 $3
    Notice $nick Successfully set Host3 to %host3 
  } 
  elseif ($2 == ip2) {
    set %ip2 $3
    Notice $nick Successfully set IP2 to %ip2 
  } 
  elseif ($2 == port2) {
    set %port2 $3
    Notice $nick Successfully set Port to %port2 
  }
  elseif ($2 == ip3) {
    set %ip3 $3
    Notice $nick Successfully set IP3 to %ip3
  } 
  elseif ($2 == port3) {
    set %port3 $3
    Notice $nick Successfully set Port to %port3
  } 
  elseif ($2 == dj) {
    notice $nick %background $+ %left You need to pick a server! %right 
  }
  elseif ($2 == dj1) {
    if ($3 ison %channel) {
      set %dj1 $3  
      set %dj1timestart $duration($time) 
    dotopic  }
    else notice $nick %background $+ %left  $+ $3 is not here! %right
  }
  elseif ($2 == dj2) {
    if ($3 ison %channel) { 
      set %dj2 $3 
      set %dj2timestart $duration($time) 
    dotopic }
    else notice $nick %background $+ %left  $+ $3 is not here! %right
  }
  elseif ($2 == dj3) {
    if ($3 ison %channel) { 
      set %dj3 $3
      set %dj3timestart $duration($time) 
    dotopic }
    else notice $nick %background $+ %left  $+ $3 is not here! %right
  }
}