]> granicus.if.org Git - ejabberd/commitdiff
Use proper module name
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Sat, 31 Mar 2012 12:56:51 +0000 (22:56 +1000)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Sat, 31 Mar 2012 12:56:51 +0000 (22:56 +1000)
src/mod_muc/mod_muc.erl
src/mod_muc/mod_muc_odbc.erl

index 5ae7e82ec1e5a9a1b4629b8d29310617e4b0ca22..81573d1a19eb3431ba8dc9f2184d21ffd551d69b 100644 (file)
@@ -513,7 +513,7 @@ do_route1(Host, ServerHost, Access, HistorySize, RoomShaper,
 check_user_can_create_room(ServerHost, AccessCreate, From, RoomID) ->
     case acl:match_rule(ServerHost, AccessCreate, From) of
        allow ->
-           (length(RoomID) =< gen_mod:get_module_opt(ServerHost, mod_muc,
+           (length(RoomID) =< gen_mod:get_module_opt(ServerHost, ?MODULE,
                                                      max_room_id, infinite));
        _ ->
            false
index de0a6ae74c1633926e75aa4a4f523c11e875e934..318b8a70bfc799f0ac8f8cc8177b0d382a5d57fe 100644 (file)
@@ -96,8 +96,8 @@ stop(Host) ->
 %% This function is called by a room in three situations:
 %% A) The owner of the room destroyed it
 %% B) The only participant of a temporary room leaves it
-%% C) mod_muc:stop was called, and each room is being terminated
-%%    In this case, the mod_muc process died before the room processes
+%% C) mod_muc_odbc:stop was called, and each room is being terminated
+%%    In this case, the mod_muc_odbc process died before the room processes
 %%    So the message sending must be catched
 room_destroyed(Host, Room, Pid, ServerHost) ->
     catch gen_mod:get_module_proc(ServerHost, ?PROCNAME) !
@@ -521,7 +521,7 @@ do_route1(Host, ServerHost, Access, HistorySize, RoomShaper,
 check_user_can_create_room(ServerHost, AccessCreate, From, RoomID) ->
     case acl:match_rule(ServerHost, AccessCreate, From) of
        allow ->
-           (length(RoomID) =< gen_mod:get_module_opt(ServerHost, mod_muc,
+           (length(RoomID) =< gen_mod:get_module_opt(ServerHost, ?MODULE,
                                                      max_room_id, infinite));
        _ ->
            false