comparison mod_mam/mod_mam.lua @ 798:2b8ceb4d1a73

mod_mam: remove useless check
author Kim Alvefur <zash@zash.se>
date Thu, 16 Aug 2012 21:16:35 +0200
parents 3c37445f26ac
children 53917d98d411
comparison
equal deleted inserted replaced
797:68a067d5ed3b 798:2b8ceb4d1a73
230 end); 230 end);
231 231
232 local function has_in_roster(user, who) 232 local function has_in_roster(user, who)
233 local roster = rm_load_roster(user, host); 233 local roster = rm_load_roster(user, host);
234 module:log("debug", "%s has %s in roster? %s", user, who, roster[who] and "yes" or "no"); 234 module:log("debug", "%s has %s in roster? %s", user, who, roster[who] and "yes" or "no");
235 return roster and roster[who]; 235 return roster[who];
236 end 236 end
237 237
238 local function shall_store(user, who) 238 local function shall_store(user, who)
239 -- TODO Cache this? 239 -- TODO Cache this?
240 local prefs = get_prefs(user); 240 local prefs = get_prefs(user);