plugins.roster: Fix wrong name of reply variable

Sun, 28 Aug 2011 23:34:59 +0200

author
Kim Alvefur <zash@zash.se>
date
Sun, 28 Aug 2011 23:34:59 +0200
changeset 213
aa3088108021
parent 212
cd2e5eef7a7a
child 214
78ae20c875cd

plugins.roster: Fix wrong name of reply variable

plugins/roster.lua file | annotate | diff | comparison | revisions
--- a/plugins/roster.lua	Tue Aug 16 02:32:36 2011 +0200
+++ b/plugins/roster.lua	Sun Aug 28 23:34:59 2011 +0200
@@ -81,7 +81,7 @@
 				:add_child(item_lua2xml(item)),
 			function (reply)
 				if not callback then return end
-				if result.attr.type == "result" then
+				if reply.attr.type == "result" then
 					callback(true);
 				else
 					type, condition, text = reply:get_error();

mercurial