summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-10-16 20:15:22 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-10-16 20:15:22 +0200
commit395674c7242ecca8801434c5434316097633d3a3 (patch)
treebb5d6fc860dbef953555af76355b3a8db78d4f29 /src
parentc161d704f7629b78a08e53468e12637be1491436 (diff)
downloadweechat-395674c7242ecca8801434c5434316097633d3a3.zip
irc: fix split of outgoing message when there are only spaces
This fix error "No text to send" when sending message with one space (the space was lost during split of string).
Diffstat (limited to 'src')
-rw-r--r--src/plugins/irc/irc-message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/irc/irc-message.c b/src/plugins/irc/irc-message.c
index b2e11265a..dcb7105e2 100644
--- a/src/plugins/irc/irc-message.c
+++ b/src/plugins/irc/irc-message.c
@@ -738,7 +738,7 @@ irc_message_split (struct t_irc_server *server, const char *message)
goto end;
argv = weechat_string_split (message, " ", 0, 0, &argc);
- argv_eol = weechat_string_split (message, " ", 1, 0, NULL);
+ argv_eol = weechat_string_split (message, " ", 2, 0, NULL);
if (argc < 2)
goto end;