Actually no, i know how to access records. I should have been clearer.
I am creating a module that does not process_iq’s, which means that its initiated through some other means. Unfortunately with this being the case i only have access to the users Username, Server, JID, and SessionID.
I am trying to simulate a disconnect similar to the one found when a user signs in twice with the same Resource ID (the first user gets kicked and get replaced by the newer connection).
Now what i am trying to accomplish is to be able to access some of the StateData which is needed by some of the other function calls, such as presence_broadcast which requires the users active privacy_list.
Lastly i need access to the users ejabberd_receiver process so that i may disconnect the user. Unfortunately i am having issues trying to find how to access this data directly.
Thanks again.