Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- send_packet({#message{type = chat, body = [_|_],
- id = ID, from = From, to = To} = Pkt, _} = Acc) ->
- JID = #jid{luser = LUser, lserver = LServer} = To,
- IQ = #iq{from = From, to = JID, type = get, sub_els = [#ping{}]},
- Host = <<"localhost">>,
- ejabberd_router:route_iq(IQ, JID,
- gen_mod:get_module_proc(Host, ?MODULE),
- 10),
- Acc;
Advertisement
Add Comment
Please, Sign In to add comment