All pastes #493290 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-17 18:08 UTC
rendered paste body
bind pub - !setpcw setw
proc setw { nick host handle chan text } {
global pcw pcn
  set pcw [lindex $text 0]
  set pcn $nick
  putserv "PRIVMSG $chan :$nick has set $world as the new world!"
}
bind pub - !world vieww
proc vieww { nick host handle chan text } {
global pcw pcn
if {[info exists pcn]} {
    putserv "PRIVMSG $chan :The current world is $pcw set by $pcn"
  }
  else {
    putserv "PRIVMSG $chan :There is no world set yet!"
  }
}