comparison mod_groups_internal/mod_groups_internal.lua @ 4418:8c31d4b872c3

mod_groups_internal: fix log message not appearing "warning" vs "warn", sigh
author Jonas Schäfer <jonas@wielicki.name>
date Sun, 31 Jan 2021 12:20:03 +0100
parents 7e379ccb8ed6
children 1185acb2ab91
comparison
equal deleted inserted replaced
4417:7e379ccb8ed6 4418:8c31d4b872c3
204 xmlns = "jabber:x:conference", 204 xmlns = "jabber:x:conference",
205 jid = group_info.muc_jid 205 jid = group_info.muc_jid
206 }):up()); 206 }):up());
207 module:log("debug", "set user %s to be member in %s and sent invite", username, group_info.muc_jid); 207 module:log("debug", "set user %s to be member in %s and sent invite", username, group_info.muc_jid);
208 else 208 else
209 module:log("warning", "failed to update affiliation for %s in %s", username, group_info.muc_jid); 209 module:log("warn", "failed to update affiliation for %s in %s", username, group_info.muc_jid);
210 end 210 end
211 end 211 end
212 if not delay_update then 212 if not delay_update then
213 do_all_group_subscriptions_by_group(group_id); 213 do_all_group_subscriptions_by_group(group_id);
214 end 214 end
227 local room = muc_host.get_room_from_jid(group_info.muc_jid); 227 local room = muc_host.get_room_from_jid(group_info.muc_jid);
228 if room then 228 if room then
229 local user_jid = username .. "@" .. host; 229 local user_jid = username .. "@" .. host;
230 room:set_affiliation(true, user_jid, nil); 230 room:set_affiliation(true, user_jid, nil);
231 else 231 else
232 module:log("warning", "failed to update affiliation for %s in %s", username, group_info.muc_jid); 232 module:log("warn", "failed to update affiliation for %s in %s", username, group_info.muc_jid);
233 end 233 end
234 end 234 end
235 return true; 235 return true;
236 end 236 end
237 237