rendered paste bodyon 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
}