aboutsummaryrefslogtreecommitdiff
path: root/src/mod_muc_riak.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_muc_riak.erl')
-rw-r--r--src/mod_muc_riak.erl36
1 files changed, 35 insertions, 1 deletions
diff --git a/src/mod_muc_riak.erl b/src/mod_muc_riak.erl
index 156396caa..23681e883 100644
--- a/src/mod_muc_riak.erl
+++ b/src/mod_muc_riak.erl
@@ -30,10 +30,14 @@
%% API
-export([init/2, import/3, store_room/4, restore_room/3, forget_room/3,
can_use_nick/4, get_rooms/2, get_nick/3, set_nick/4]).
+-export([register_online_room/3, unregister_online_room/3, find_online_room/2,
+ get_online_rooms/2, count_online_rooms/1, rsm_supported/0,
+ register_online_user/3, unregister_online_user/3,
+ count_online_rooms_by_user/2, get_online_rooms_by_user/2]).
-export([set_affiliation/6, set_affiliations/4, get_affiliation/5,
get_affiliations/3, search_affiliation/4]).
--include("jlib.hrl").
+-include("jid.hrl").
-include("mod_muc.hrl").
%%%===================================================================
@@ -136,6 +140,36 @@ get_affiliations(_ServerHost, _Room, _Host) ->
search_affiliation(_ServerHost, _Room, _Host, _Affiliation) ->
{error, not_implemented}.
+register_online_room(_, _, _) ->
+ erlang:error(not_implemented).
+
+unregister_online_room(_, _, _) ->
+ erlang:error(not_implemented).
+
+find_online_room(_, _) ->
+ erlang:error(not_implemented).
+
+count_online_rooms(_) ->
+ erlang:error(not_implemented).
+
+get_online_rooms(_, _) ->
+ erlang:error(not_implemented).
+
+rsm_supported() ->
+ false.
+
+register_online_user(_, _, _) ->
+ erlang:error(not_implemented).
+
+unregister_online_user(_, _, _) ->
+ erlang:error(not_implemented).
+
+count_online_rooms_by_user(_, _) ->
+ erlang:error(not_implemented).
+
+get_online_rooms_by_user(_, _) ->
+ erlang:error(not_implemented).
+
import(_LServer, <<"muc_room">>,
[Name, RoomHost, SOpts, _TimeStamp]) ->
Opts = mod_muc:opts_to_binary(ejabberd_sql:decode_term(SOpts)),