# HG changeset patch # User Kim Alvefur # Date 1554117547 -7200 # Node ID 946902fa4088fb004afe50b50554452340cf20db # Parent 7d6fb9570395c10899b8ec9269b1636d7eeb470d mod_csi_muc_priorities: Undo early return to make following commit clearer diff -r 7d6fb9570395 -r 946902fa4088 mod_csi_muc_priorities/mod_csi_muc_priorities.lua --- a/mod_csi_muc_priorities/mod_csi_muc_priorities.lua Mon Apr 01 08:40:22 2019 +0200 +++ b/mod_csi_muc_priorities/mod_csi_muc_priorities.lua Mon Apr 01 13:19:07 2019 +0200 @@ -21,10 +21,14 @@ -- Look for mention local rooms = session.rooms_joined; - if not rooms then return; end - - local room_nick = rooms[room_jid]; - if room_nick and body:find(room_nick, 1, true) then return true; end + if rooms then + local room_nick = rooms[room_jid]; + if room_nick then + if body:find(room_nick, 1, true) then + return true; + end + end + end end end end);