changeset 1519:67c80abe742e

mod_mam_muc: Fix add/removal of room method overrides
author Kim Alvefur <zash@zash.se>
date Thu, 09 Oct 2014 15:08:05 +0200
parents 9475fe14d58d
children 2881d532f385
files mod_mam_muc/mod_mam_muc.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mod_mam_muc/mod_mam_muc.lua	Wed Oct 08 12:56:21 2014 +0200
+++ b/mod_mam_muc/mod_mam_muc.lua	Thu Oct 09 15:08:05 2014 +0200
@@ -1,5 +1,5 @@
 -- XEP-0313: Message Archive Management for Prosody MUC
--- Copyright (C) 2011-2013 Kim Alvefur
+-- Copyright (C) 2011-2014 Kim Alvefur
 --
 -- This file is MIT/X11 licensed.
 
@@ -199,7 +199,7 @@
 			first = first, last = last, count = count }));
 end);
 
-function room_mt:send_history(to, stanza)
+function send_history(self, to, stanza)
 	local maxchars, maxstanzas, seconds, since;
 	local history_tag = stanza:find("{http://jabber.org/protocol/muc}x/history")
 	if history_tag then
@@ -249,7 +249,7 @@
 end
 
 -- Handle messages
-function room_mt:save_to_history(stanza)
+function save_to_history(self, stanza)
 	local orig_to = stanza.attr.to;
 	local room = jid_split(self.jid);