pidgin: 51236278: Fixes non-ASCII arguments to /mode, /umo.
elb at pidgin.im
elb at pidgin.im
Mon Jun 21 21:45:53 EDT 2010
-----------------------------------------------------------------
Revision: 51236278b5344e58692ae671bd25a862058432da
Ancestor: 140d7640af14c88fbd79c73548a8cf89067e6542
Author: ulidtko at gmail.com
Date: 2010-06-22T01:40:18
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/51236278b5344e58692ae671bd25a862058432da
Modified files:
COPYRIGHT ChangeLog libpurple/protocols/irc/cmds.c
ChangeLog:
Fixes non-ASCII arguments to /mode, /umode, etc. Thanks to Max
Ulidtko for this patch.
Fixes #12207
-------------- next part --------------
============================================================
--- COPYRIGHT 355cda7e11da1ae3df22e58aa12d47a68ce9772a
+++ COPYRIGHT 32d71e559b352bb0e6d459319a0439a9bdff18a9
@@ -512,6 +512,7 @@ Junichi Uekawa
Kyle Turman
Jon Turney
Junichi Uekawa
+Max Ulidtko
Igor Vlasenko
Istv?n V?radi
Martijn van Beers
============================================================
--- ChangeLog a6bb4ec247905ed0e6a2d9118bb9c6d3d9646a27
+++ ChangeLog fe404c0bebd89ea02d7f4b6344ed2a1db91bb553
@@ -13,6 +13,9 @@ version 2.7.2 (??/??/????):
* Rebindable 'dropdown' action for comboboxes (GntComboBox) to show the
dropdown list of options.
+ IRC:
+ * Fix non-ASCII arguments to /mode et al. (thanks to Max Ulidtko)
+
XMPP:
* Allow connecting to servers that only advertise GSSAPI and expect
a fallback to legacy IQ authentication (broken in 2.7.0).
============================================================
--- libpurple/protocols/irc/cmds.c 7327306021dde8bc516064ed5b3390e776c7a7f4
+++ libpurple/protocols/irc/cmds.c 2f4a5c0f076a40bcb288fb79c0f01a006a76910b
@@ -238,16 +238,16 @@ int irc_cmd_mode(struct irc_conn *irc, c
if (!args[0] && irc_ischannel(target))
buf = irc_format(irc, "vc", "MODE", target);
else if (args[0] && (*args[0] == '+' || *args[0] == '-'))
- buf = irc_format(irc, "vcv", "MODE", target, args[0]);
+ buf = irc_format(irc, "vcn", "MODE", target, args[0]);
else if (args[0])
- buf = irc_format(irc, "vv", "MODE", args[0]);
+ buf = irc_format(irc, "vn", "MODE", args[0]);
else
return 0;
} else if (!strcmp(cmd, "umode")) {
if (!args[0])
return 0;
gc = purple_account_get_connection(irc->account);
- buf = irc_format(irc, "vnv", "MODE", purple_connection_get_display_name(gc), args[0]);
+ buf = irc_format(irc, "vnc", "MODE", purple_connection_get_display_name(gc), args[0]);
} else {
return 0;
}
@@ -437,7 +437,7 @@ int irc_cmd_quote(struct irc_conn *irc,
if (!args || !args[0])
return 0;
- buf = irc_format(irc, "v", args[0]);
+ buf = irc_format(irc, "n", args[0]);
irc_send(irc, buf);
g_free(buf);
More information about the Commits
mailing list