All pastes #677107 Raw Edit

Untitled

public text v1 · immutable
#677107 ·published 2007-08-31 17:55 UTC
rendered paste body
putlog "\002\00304Echo SEND Module Loaded"

############################################################################

  set ::last_addpre ""
  set ::last_nuke ""
  set ::last_unnuke ""
  set ::last_info ""
  set ::last_genre ""

###
### !addpre ###
###

bind pub - !addpre pub:addpre
proc pub:addpre {nick host hand chan arg} {

  set bits [split $arg " "]
  if { $::last_addpre == [lindex $bits 0] } { return 0 }
  set ::last_addpre [lindex $bits 0]

  set rls [lindex $arg 0]
  set section [lindex $arg 1]

  putallbots "echopre $rls $section"
}

###
### !nuke ###
###

bind pub - !nuke pub:nuke
proc pub:nuke {nick host hand chan arg} {

  set bits [split $arg " "]
  if { $::last_nuke == [lindex $bits 0] } { return 0 }
  set ::last_nuke [lindex $bits 0]

  set rls [lindex $arg 0]
  set reason [lindex $arg 1]

  putallbots "echonuke $rls $reason"
}