plugins/muc/muc.lib.lua
changeset 7355 50b24b3476e6
parent 7350 795a95258292
child 7356 ca31d3271cf8
--- a/plugins/muc/muc.lib.lua	Tue Apr 12 19:35:55 2016 +0200
+++ b/plugins/muc/muc.lib.lua	Thu Apr 14 21:23:09 2016 +0200
@@ -36,6 +36,10 @@
 	return "MUC room ("..self.jid..")";
 end
 
+function room_mt.save()
+	-- overriden by mod_muc.lua
+end
+
 function room_mt:get_occupant_jid(real_jid)
 	return self._jid_nick[real_jid]
 end
@@ -695,7 +699,7 @@
 		end
 		event.field, event.value = nil, nil;
 
-		if self.save then self:save(true); end
+		self:save(true);
 		origin.send(st.reply(stanza));
 
 		if next(event.status_codes) then