aboutsummaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorTom Feist <shabble@metavore.org>2011-03-31 21:02:48 +0000
committerTom Feist <shabble@metavore.org>2011-03-31 21:02:48 +0000
commitf641def6272bdfdbb7a2b6bd658f990d285bb41d (patch)
treea232a17815ffaf94075c60f18988795d227b77f3 /patches
parentido-mode/ido_switcher: last one, I promise! (diff)
downloadirssi-scripts-f641def6272bdfdbb7a2b6bd658f990d285bb41d.tar.gz
irssi-scripts-f641def6272bdfdbb7a2b6bd658f990d285bb41d.zip
patch to fix irssi bug #795, although useless because it's already fixed in
latest trunk irssi. Preserved for posterity
Diffstat (limited to 'patches')
-rw-r--r--patches/fix-cumode_space.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/patches/fix-cumode_space.patch b/patches/fix-cumode_space.patch
new file mode 100644
index 0000000..9d1e728
--- /dev/null
+++ b/patches/fix-cumode_space.patch
@@ -0,0 +1,32 @@
+From 35ddd45044388fe1f26e95c43ca0d8bcf30462fe Mon Sep 17 00:00:00 2001
+From: Tom Feist <shabble@metavore.org>
+Date: Sat, 19 Mar 2011 08:09:37 +0000
+Subject: [PATCH] fix bug #795 by setting free_arg parameter correctly to false where the expando
+ expansion is a static string.
+
+---
+ src/irc/core/irc-expandos.c | 8 +++++++-
+ 1 files changed, 7 insertions(+), 1 deletions(-)
+
+diff --git a/src/irc/core/irc-expandos.c b/src/irc/core/irc-expandos.c
+index 0c0da64..df692cc 100644
+--- a/src/irc/core/irc-expandos.c
++++ b/src/irc/core/irc-expandos.c
+@@ -106,7 +106,13 @@ static char *expando_cumode_space(SERVER_REC *server, void *item, int *free_ret)
+ return "";
+
+ ret = expando_cumode(server, item, free_ret);
+- return *ret == '\0' ? " " : ret;
++
++ if (*ret == '\0') {
++ free_ret = FALSE;
++ return " ";
++ } else {
++ return ret;
++ }
+ }
+
+ static void event_join(IRC_SERVER_REC *server, const char *data,
+--
+1.7.4.1
+