summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-12-03 02:28:01 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-12-03 02:28:01 +0000
commit4d39f311f99da06b4a489423a881672e508bebf7 (patch)
tree59ebb172f13caa24d92c577101bfd120c9ee21eb /src
parent4a295a734328fb17de4b5b15e033762744ddf52b (diff)
downloadirssi-4d39f311f99da06b4a489423a881672e508bebf7.zip
fixes
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@933 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/irc/module-formats.c2
-rw-r--r--src/fe-text/gui-windows.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/fe-common/irc/module-formats.c b/src/fe-common/irc/module-formats.c
index 8c96c599..e5fd8c53 100644
--- a/src/fe-common/irc/module-formats.c
+++ b/src/fe-common/irc/module-formats.c
@@ -59,7 +59,7 @@ FORMAT_REC fecommon_irc_formats[] = {
{ "channel_rejoin", "Channel {channel $0} is temporarily unavailable, this is normally because of netsplits. Irssi will now automatically try to rejoin back to this channel until the join is successful. Use /RMREJOINS command if you wish to abort this.", 1, { 0 } },
{ "inviting", "Inviting {nick $0} to {channel $1}", 2, { 0, 0 } },
{ "not_invited", "You have not been invited to a channel!", 0 },
- { "names", "{names_users Users {names_channel $0}}$1", 2, { 0, 0 } },
+ { "names", "{names_users Users {names_channel $0}} $1", 2, { 0, 0 } },
{ "names_nick", "{names_nick $0 $1}", 2, { 0, 0 } },
{ "endofnames", "{channel $0}: Total of {hilight $1} nicks {comment {hilight $2} ops, {hilight $3} voices, {hilight $4} normal}", 5, { 0, 1, 1, 1, 1 } },
{ "channel_created", "Channel {channelhilight $0} created $1", 2, { 0, 0 } },
diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c
index 5ed1bd88..34c6c719 100644
--- a/src/fe-text/gui-windows.c
+++ b/src/fe-text/gui-windows.c
@@ -981,7 +981,8 @@ static char *gui_window_line_get_format(WINDOW_REC *window, LINE_REC *line,
if (formatnum == -1)
ret = NULL;
else {
- argcount = 0;
+ argcount = 0;
+ memset(args, 0, sizeof(args));
while (*text != '\0' || text[1] != LINE_CMD_EOL) {
args[argcount] = line_read_format(&text);
if (raw != NULL) {