Comparison

mod_csi_muc_priorities/mod_csi_muc_priorities.lua @ 3538:946902fa4088

mod_csi_muc_priorities: Undo early return to make following commit clearer
author Kim Alvefur <zash@zash.se>
date Mon, 01 Apr 2019 13:19:07 +0200
parent 3537:7d6fb9570395
child 3539:6d51f44bc725
comparison
equal deleted inserted replaced
3537:7d6fb9570395 3538:946902fa4088
19 return nil; 19 return nil;
20 end 20 end
21 21
22 -- Look for mention 22 -- Look for mention
23 local rooms = session.rooms_joined; 23 local rooms = session.rooms_joined;
24 if not rooms then return; end 24 if rooms then
25 25 local room_nick = rooms[room_jid];
26 local room_nick = rooms[room_jid]; 26 if room_nick then
27 if room_nick and body:find(room_nick, 1, true) then return true; end 27 if body:find(room_nick, 1, true) then
28 return true;
29 end
30 end
31 end
28 end 32 end
29 end 33 end
30 end); 34 end);
31 35
32 module:depends("adhoc"); 36 module:depends("adhoc");