Hello,
I need to extend mod_webpresence to be able to change externally the presence of a connected user. I have found a method in ejabberd_c2s.erl called:
presence_update(From, Packet, StateData) ->
The problem is that I don't know how the get the StateDate of a connected user. Is there another way to do this?
Thanks in advance,
Re: presence_update
Hello,
I need to extend mod_webpresence to be able to change externally the presence of a connected user. I have found a method in ejabberd_c2s.erl called:
presence_update(From, Packet, StateData) ->
The problem is that I don't know how the get the StateDate of a connected user. Is there another way to do this?
Thanks in advance,
You should not get a state of c2s, this is very bad idea.
Quote: change externally the
change externally the presence of a connected user
Check the patch at:New set_presence command