From 8fe98de119a76ae60a700286c0a9614e8d7093f5 Mon Sep 17 00:00:00 2001
From: Waqas Hussain <waqas20@gmail.com>
Date: Fri, 26 Jun 2009 21:50:27 +0500
Subject: util.muc: Fixed incorrect parameters for a function call

---
 util/muc.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/muc.lua b/util/muc.lua
index 2bb1311a..a9d32d8b 100644
--- a/util/muc.lua
+++ b/util/muc.lua
@@ -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"));
-- 
cgit v1.2.3