[JDEV] mod_mymod.c

Dennis Noordsij dennis.noordsij at wiral.com
Fri Dec 8 07:06:53 CST 2000


Hi again,

Got that bit working, really cool effects going on now, just one more question

If my instance receives a message and it would like to store the message in 
the offline storage (ie only notify the user of the message but not send the 
message itself) - how would that go?

Encapsulate the message into jabber:x:offline ?

Regards,
Dennis



> mreturn mod_example_logout_handler(mapi m, void *arg)
> {
>     xmlnode msg;
>
>     msg = xmlnode_new_tag("message");
>     xmlnode_put_attrib(msg, "from", jid_full(m->packet->from));
>     xmlnode_put_attrib(msg, "to", NAME_OF_YOUR_INSTANCE);
>
>     deliver(dpacket_new(msg), m->si->i);
>
>     xmlnode_free(msg);
>
>     return M_PASS;
> }
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev




More information about the JDev mailing list