MUC: Fixed an undefined global access.

Mon, 07 Sep 2009 20:53:33 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Mon, 07 Sep 2009 20:53:33 +0500
changeset 1755
1614e8e62ad5
parent 1754
67b66eec9777
child 1756
b2291156a9c2

MUC: Fixed an undefined global access.

plugins/muc/muc.lib.lua file | annotate | diff | comparison | revisions
--- a/plugins/muc/muc.lib.lua	Mon Sep 07 20:51:59 2009 +0500
+++ b/plugins/muc/muc.lib.lua	Mon Sep 07 20:53:33 2009 +0500
@@ -526,7 +526,7 @@
 			end
 		end
 	end
-	if room.save then room:save(); end
+	if self.save then self:save(); end
 	if callback then callback(); end
 	for _, nick in ipairs(modified_nicks) do
 		p.attr.from = nick;

mercurial