aboutsummaryrefslogtreecommitdiffstats
path: root/util/muc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util/muc.lua')
-rw-r--r--util/muc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/muc.lua b/util/muc.lua
index 2bb1311a..87eba130 100644
--- a/util/muc.lua
+++ b/util/muc.lua
@@ -165,7 +165,7 @@ end
local function room_get_disco_info(self, stanza) end
local function room_get_disco_items(self, stanza) end
-local function room_set_subject(room, current_nick, room, subject)
+local function room_set_subject(room, current_nick, subject)
-- TODO check nick's authority
if subject == "" then subject = nil; end
room._data['subject'] = subject;
@@ -315,7 +315,7 @@ local function room_handle_to_room(self, origin, stanza) -- presence changes and
local current_nick = self._jid_nick[stanza.attr.from];
if current_nick then
stanza.attr.to = current_nick;
- room_handle_to_occupant(origin, stanza);
+ room_handle_to_occupant(self, origin, stanza);
stanza.attr.to = to;
elseif type ~= "error" and type ~= "result" then
origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));