diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-09-07 10:33:37 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2016-09-07 10:33:37 +0300 |
commit | 3803a8de3c2ad70ef967bb6d7a47f20fcf82f859 (patch) | |
tree | 86b929bb501a81fd357008256b98b86fc9de050c /include | |
parent | Add SQL support for microblogging node plugin (diff) |
Link MUC subscription to bare JID
Diffstat (limited to 'include')
-rw-r--r-- | include/mod_muc_room.hrl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/mod_muc_room.hrl b/include/mod_muc_room.hrl index d985f3f3..47489f3d 100644 --- a/include/mod_muc_room.hrl +++ b/include/mod_muc_room.hrl @@ -77,11 +77,15 @@ jid :: jid(), nick :: binary(), role :: role(), - is_subscriber = false :: boolean(), - subscriptions = [] :: [binary()], + %%is_subscriber = false :: boolean(), + %%subscriptions = [] :: [binary()], last_presence :: xmlel() }). +-record(subscriber, {jid :: jid(), + nick = <<>> :: binary(), + nodes = [] :: [binary()]}). + -record(activity, { message_time = 0 :: integer(), @@ -101,6 +105,7 @@ jid = #jid{} :: jid(), config = #config{} :: config(), users = (?DICT):new() :: ?TDICT, + subscribers = (?DICT):new() :: ?TDICT, last_voice_request_time = treap:empty() :: treap:treap(), robots = (?DICT):new() :: ?TDICT, nicks = (?DICT):new() :: ?TDICT, |