# HG changeset patch # User Kim Alvefur # Date 1412860085 -7200 # Node ID 67c80abe742ed8d88389fd1e03263f9f4c2c5143 # Parent 9475fe14d58da742ee3c961d311bb4b89eb6a4dd mod_mam_muc: Fix add/removal of room method overrides diff -r 9475fe14d58d -r 67c80abe742e mod_mam_muc/mod_mam_muc.lua --- 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);