1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00
psyced/world/net/d/echo.c

16 lines
420 B
C

// $Id: echo.c,v 1.2 2005/03/14 10:23:26 lynx Exp $ // vim:syntax=lpc
//
// just a test daemon.. load it if you want urls of $echo type to work
// you can (currently) also use /msg echo:whatever locally
// put it into init.ls
create() {
register_service("echo");
}
msg(source, mc, data, mapping vars) {
P1(("%O echoing for %O", ME, source))
sendmsg(source, "_notice_echo"+mc,
"Thanks for the "+data, vars);
}