Comparison

plugins/roster.lua @ 213:aa3088108021

plugins.roster: Fix wrong name of reply variable
author Kim Alvefur <zash@zash.se>
date Sun, 28 Aug 2011 23:34:59 +0200
parent 210:118da85cb3ce
child 217:60db4e738910
comparison
equal deleted inserted replaced
212:cd2e5eef7a7a 213:aa3088108021
79 stream:send_iq(verse.iq({ type = "set" }) 79 stream:send_iq(verse.iq({ type = "set" })
80 :tag("query", { xmlns = xmlns_roster }) 80 :tag("query", { xmlns = xmlns_roster })
81 :add_child(item_lua2xml(item)), 81 :add_child(item_lua2xml(item)),
82 function (reply) 82 function (reply)
83 if not callback then return end 83 if not callback then return end
84 if result.attr.type == "result" then 84 if reply.attr.type == "result" then
85 callback(true); 85 callback(true);
86 else 86 else
87 type, condition, text = reply:get_error(); 87 type, condition, text = reply:get_error();
88 callback(nil, { type, condition, text }); 88 callback(nil, { type, condition, text });
89 end 89 end