All pastes #279491 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-12-15 02:17 UTC
rendered paste body
proc msg:say {nick host hand arg} {
  return 0
  set arg1 [lindex $arg 1]
  if {[lindex $arg 0] == ""} {
    notice $nick :Please supply a channel to say this in."
    return 0
  }
  if {[string index $arg 0] != "#"} {
    notice $nick :You need a # in front."
    return 0
  }
  if {[string index $arg 1] == "!"} {
    putserv "NOTICE $nick :Having ! in front has been disabled for security reasons."
    return 0
    } else {
    putserv "PRIVMSG [lindex $arg 0] :[lindex $arg 1]"
    putserv "NOTICE $nick :[string index $arg1]"
  }
}