bind pub - !pcw pcw:world
bind pub - !world pcw:world
bind pub - !change change:world
proc pcw:world {nick host handle chan text} {
global world pcwnick pcwtime
puthelp "NOTICE $nick :\00303\[\00312The current PCW World is $world.\00303\] \00312- \00303\[\00312The PCW was set by $pcwnick [expr {[unixtime]-[clock scan $pcwtime]}] seconds ago.\00303\]"
}
proc change:world {nick host handle chan text} {
global world pcwnick pcwtime
if {[isop $nick $chan] || [ishalfop $nick $chan] == 1} {
set world $text
set pcwnick $nick
set pcwtime [ctime [unixtime]]
puthelp "PRIVMSG #thepc :\00303\[\00312PC World Update\00303\]\00312 The PCW World has been updated!"
}
}