Changeset

271:c9d8628a61cc

plugins.roster: Change variable name to what's used in XMPP-IM
author Kim Alvefur <zash@zash.se>
date Sun, 01 Jan 2012 22:17:39 +0100
parents 270:6a9a99aa062b
children 272:e1833e9bd25b
files plugins/roster.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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));