All pastes #761981 Raw Edit

Bekar

public text v1 · immutable
·published 2007-11-05 05:44 UTC
rendered paste body
on 1:TEXT:*:?: {
  haltdef

  if ($1 == downloads) { disp.dnld }
  else if ($1 == commands) { disp.cmds }
  else if ($1 == exit) { disp.exit }
  else { 
    msg $nick Sorry, unknown command, for a list type commands, thank you.
    halt
  }
}

alias download {
  if ($1 == manuals) { do something }
  elseif ($1 == drivers) { do something else }
  elseif ($1 == ??) { blah }
  else {
    something wrong here
  }
}

alias disp.dnld {
  msg $nick User Downloads: drivers, manuals
}

alias disp.cmds {
  msg $nick Command List: downloads, exit, news
  msg $nick For a detailed instruction, do commands <command>.
  msg $nick Example: commands downloads
}