All pastes #368459 Raw Edit

Something

public text v1 · immutable
#368459 ·published 2007-02-23 02:41 UTC
rendered paste body
on 200:TEXT:*bind*:#:{
  if ($1 == %trig $+ bind) {
    if ($2 == $null) { notice $nick [BIND] Syntax, %trig $+ bind [^B][COMMAND] [INFO][^B] | halt }
    if ($3 == $null) { notice $nick [BIND] Syntax, %trig $+ bind [COMMAND] [^B][INFO][^B] | halt }
    if ($2 == trigger) { set %trig $3 | notice $nick Trigger is now set to $3 | halt }    
    set % $+ $2 $3-
    notice $nick Command $2 is now binded as $3-
  }
}