# HG changeset patch # User Kim Alvefur # Date 1325452659 -3600 # Node ID c9d8628a61cc121898c489a499f36427995c62e0 # Parent 6a9a99aa062b977cbe836f59e598dd6ff4add09f plugins.roster: Change variable name to what's used in XMPP-IM diff -r 6a9a99aa062b -r c9d8628a61cc plugins/roster.lua --- 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));