All pastes #763529 Raw Edit

Something

public text v1 · immutable
·published 2007-11-06 15:14 UTC
rendered paste body
on *:text:!calc*:#: { msg $chan $calc($2-)  }
on *:text:!calc*:#: {  //trigger
  if ($2 == $null) {  //if there's no second word
    notice $nick Wtf I've to calculate now?
    halt //halts the script
  } //closes the if statement
  else { //opens an else statement
    msg $chan $calc($2-) 
  } //closes the else
} //closes the script