mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-14 14:31:02 +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;
|
|
}
|
|
|