summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-02-11 21:44:15 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-02-11 21:44:15 +0100
commit0adf80cb12abe68091748fb37b7830d362c8eedf (patch)
treed50e3f3ccac8dab90ec036b4bca926ca0d3373bd
parent85d19bc363f1c1411dc0e33c5ea6e70d537fdb90 (diff)
downloadweechat-0adf80cb12abe68091748fb37b7830d362c8eedf.zip
Fix build of IRC CTCP message (bug #25560)
-rw-r--r--src/plugins/irc/irc-command.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c
index c98a4f40c..0dc6a1797 100644
--- a/src/plugins/irc/irc-command.c
+++ b/src/plugins/irc/irc-command.c
@@ -709,10 +709,10 @@ irc_command_ctcp (void *data, struct t_gui_buffer *buffer, int argc,
}
else
{
- if (argv_eol[2])
+ if (argv_eol[3])
{
irc_server_sendf (ptr_server, "PRIVMSG %s :\01%s %s\01",
- argv[1], irc_cmd, argv_eol[2]);
+ argv[1], irc_cmd, argv_eol[3]);
weechat_printf (ptr_server->buffer,
"%sCTCP%s(%s%s%s)%s: %s%s %s%s",
irc_buffer_get_server_prefix (ptr_server, NULL),
@@ -724,7 +724,7 @@ irc_command_ctcp (void *data, struct t_gui_buffer *buffer, int argc,
IRC_COLOR_CHAT_CHANNEL,
irc_cmd,
IRC_COLOR_CHAT,
- argv_eol[2]);
+ argv_eol[3]);
}
else
{
@@ -742,7 +742,7 @@ irc_command_ctcp (void *data, struct t_gui_buffer *buffer, int argc,
irc_cmd);
}
}
-
+
free (irc_cmd);
}