plugins.roster: Change variable name to what's used in XMPP-IM

Sun, 01 Jan 2012 22:17:39 +0100

author
Kim Alvefur <zash@zash.se>
date
Sun, 01 Jan 2012 22:17:39 +0100
changeset 271
c9d8628a61cc
parent 270
6a9a99aa062b
child 272
e1833e9bd25b

plugins.roster: Change variable name to what's used in XMPP-IM

plugins/roster.lua file | annotate | diff | comparison | revisions
--- a/plugins/roster.lua	Fri Dec 23 06:11:14 2011 +0100
+++ b/plugins/roster.lua	Sun Jan 01 22:17:39 2012 +0100
@@ -65,8 +65,8 @@
 	end
 
 	-- should this be add_contact(item, callback) instead?
-	function roster:add_contact(jid, nick, groups, callback)
-		local item = { jid = jid, name = nick, groups = groups };
+	function roster:add_contact(jid, name, groups, callback)
+		local item = { jid = jid, name = name, groups = groups };
 		local stanza = verse.iq({ type = "set" })
 			:tag("query", { xmlns = xmlns_roster })
 				:add_child(item_lua2xml(item));

mercurial