diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2012-03-31 22:56:51 +1000 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2012-03-31 22:56:51 +1000 |
commit | 6ec5c7c4d8aec009480f79b1cc3205457942e3a2 (patch) | |
tree | f8482bad20a6edf1c77b9880c1c07c7e38c895fe /src | |
parent | ODBC support for mod_muc (diff) |
Use proper module name
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_muc/mod_muc.erl | 2 | ||||
-rw-r--r-- | src/mod_muc/mod_muc_odbc.erl | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mod_muc/mod_muc.erl b/src/mod_muc/mod_muc.erl index 5ae7e82ec..81573d1a1 100644 --- a/src/mod_muc/mod_muc.erl +++ b/src/mod_muc/mod_muc.erl @@ -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 diff --git a/src/mod_muc/mod_muc_odbc.erl b/src/mod_muc/mod_muc_odbc.erl index de0a6ae74..318b8a70b 100644 --- a/src/mod_muc/mod_muc_odbc.erl +++ b/src/mod_muc/mod_muc_odbc.erl @@ -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 |