comparison mod_csi_muc_priorities/mod_csi_muc_priorities.lua @ 3535:bcb0eb9121a9

mod_csi_muc_priorities: Add a comment
author Kim Alvefur <zash@zash.se>
date Mon, 01 Apr 2019 08:22:29 +0200
parents 700340b57851
children eed657091329
comparison
equal deleted inserted replaced
3534:700340b57851 3535:bcb0eb9121a9
7 local body = stanza:get_child_text("body"); 7 local body = stanza:get_child_text("body");
8 if not body then return end 8 if not body then return end
9 9
10 local room_jid = jid_bare(stanza.attr.from); 10 local room_jid = jid_bare(stanza.attr.from);
11 11
12 -- Look for mention
12 local rooms = session.rooms_joined; 13 local rooms = session.rooms_joined;
13 if not rooms then return; end 14 if not rooms then return; end
14 15
15 local room_nick = rooms[room_jid]; 16 local room_nick = rooms[room_jid];
16 if room_nick and body:find(room_nick, 1, true) then return true; end 17 if room_nick and body:find(room_nick, 1, true) then return true; end