morse.c
ds2.9a10/lib/cmds/creators/morse.c · 374 B
From the archive ds2.9a10.zip
Download the archive « Back to the archive contents
#include <daemons.h>
#include <lib.h>
inherit LIB_COMMAND;
int cmd(string str){
string ret = "";
if(!str){
write("See: help morse");
return 1;
}
ret = morse(str);
write("Output: "+ret);
return 1;
}
string GetHelp(string str) {
return "Syntax: morse <string>\n"
"Renders the provided string as morse code.\n"
"";
}