All pastes #165296 Raw Edit

Untitled

public text v1 · immutable
·published 2006-09-09 18:33 UTC
rendered paste body
ON *:INPUT:*: {
  if ($xr(Options,autorus) == on) {
    if (($1 == /me) || ($1 == //me)) { me $x($2-) | haltdef }
    if (($1 == /say) || ($1 == //say)) { say $x($2-) | haltdef }
    if (($1 == /ame) || ($1 == //ame)) { ame $x($2-) | haltdef }
    if (($1 == /amsg) || ($1 == //amsg)) { amsg $x($2-) | haltdef }
    if (($1 == /msg) || ($1 == //msg)) { msg $2 $x($3-) | haltdef }
    if (($1 == /describe) || ($1 == //describe)) { describe $2 $x($3-) | haltdef }
    elseif (/* !iswm $1-) { say $x($upper($left($1-,1)) $+ $mid($1-,2,$len($1-))) | haltdef }
  }
  else { say $upper($left($1-,1)) $+ $mid($1-,2,$len($1-)) | halt }
}