mirror of
git://git.psyced.org/git/psyced
synced 2024-08-15 03:25:10 +00:00
23 lines
359 B
C
23 lines
359 B
C
|
// 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;
|
||
|
}
|
||
|
|