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

23 lines
359 B
C
Raw Normal View History

// vim:syntax=lpc
#include <net.h>
load() {
return ME;
}
create() {
PT(("]] %O loaded\n", ME))
}
msg(source, mc, data, vars) {
string c;
PT(("]] %O:msg(%O, %O, %O, %O)\n", ME, source, mc, data, vars))
if (mappingp(vars) && (c = vars["_context"]) && (c = find_context(c)))
return c->castmsg(source, mc, data, vars);
return 0;
}