diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-02-08 00:46:33 +0100 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2016-02-08 00:46:33 +0100 |
commit | bf49c292f8374c6b61523deceec655bde705f817 (patch) | |
tree | 870d0307666f37fe83dae75fddc8a80c0d148344 /src/mod_muc_room.erl | |
parent | mod_mam: Don't let outcasts access MUC archive (diff) |
Omit redundant check for overcrowded MUC room
The send_update_presence/4 function already checked whether the room is
overcrowded before calling send_update_presence1/4, so there's no need
to have send_new_presence/4 perform the same check.
Diffstat (limited to 'src/mod_muc_room.erl')
-rw-r--r-- | src/mod_muc_room.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_muc_room.erl b/src/mod_muc_room.erl index 3c5776de..1b3b9c2b 100644 --- a/src/mod_muc_room.erl +++ b/src/mod_muc_room.erl @@ -2117,7 +2117,7 @@ send_update_presence1(JID, Reason, StateData, OldStateData) -> end end, lists:foreach(fun (J) -> - send_new_presence(J, Reason, StateData, OldStateData) + send_new_presence1(J, Reason, StateData, OldStateData) end, LJIDs). |