Mercurial > pidgin
diff libpurple/protocols/jabber/jabber.c @ 29070:c8b407fec879
jabber: Kick by in-room nick, not JID. Reduces code, but is still in-spec (and seems to be the preferred method)
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Thu, 18 Feb 2010 04:39:28 +0000 |
parents | 403a53ff9aa4 |
children | f549ad844d54 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c Thu Feb 18 04:37:49 2010 +0000 +++ b/libpurple/protocols/jabber/jabber.c Thu Feb 18 04:39:28 2010 +0000 @@ -2721,7 +2721,7 @@ char **nicks = g_strsplit(args[1], " ", -1); for (i = 0; nicks[i]; i++) - if (!jabber_chat_role_user(chat, nicks[i], args[0])) { + if (!jabber_chat_role_user(chat, nicks[i], args[0], NULL)) { *error = g_strdup_printf(_("Unable to set role \"%s\" for user: %s"), args[0], nicks[i]); g_strfreev(nicks); @@ -2779,7 +2779,7 @@ if(!chat || !args || !args[0]) return PURPLE_CMD_RET_FAILED; - if(!jabber_chat_kick_user(chat, args[0], args[1])) { + if(!jabber_chat_role_user(chat, args[0], "none", args[1])) { *error = g_strdup_printf(_("Unable to kick user %s"), args[0]); return PURPLE_CMD_RET_FAILED; }