]> granicus.if.org Git - ejabberd/commitdiff
Do not call the same function twice
authorEvgeny Khramtsov <ekhramtsov@process-one.net>
Sat, 6 Jul 2019 07:21:01 +0000 (10:21 +0300)
committerEvgeny Khramtsov <ekhramtsov@process-one.net>
Sat, 6 Jul 2019 07:21:01 +0000 (10:21 +0300)
src/mod_muc.erl

index 41da5b5c4d9380366e41492013b502f3c6c8d4fc..6f6330d2cf62b5b41b8d0553545bc21f1a8eb0c2 100644 (file)
@@ -514,7 +514,6 @@ route_to_room(Packet, ServerHost) ->
                    Err = xmpp:err_item_not_found(ErrText, Lang),
                    ejabberd_router:route_error(Packet, Err);
                StartType ->
-                   RMod = gen_mod:ram_db_mod(ServerHost, ?MODULE),
                    case load_room(RMod, Host, ServerHost, Room) of
                        error when StartType == start ->
                            case check_create_room(ServerHost, Host, Room, From) of