Guest User

Untitled

a guest
Mar 4th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1.  
  2. send_packet({#message{type = chat, body = [_|_],
  3. id = ID, from = From, to = To} = Pkt, _} = Acc) ->
  4.  
  5. JID = #jid{luser = LUser, lserver = LServer} = To,
  6.  
  7. IQ = #iq{from = From, to = JID, type = get, sub_els = [#ping{}]},
  8. Host = <<"localhost">>,
  9. ejabberd_router:route_iq(IQ, JID,
  10. gen_mod:get_module_proc(Host, ?MODULE),
  11. 10),
  12. Acc;
Advertisement
Add Comment
Please, Sign In to add comment