diff options
author | Joseph Bisch <joseph.bisch@gmail.com> | 2017-10-18 14:33:02 -0400 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2017-10-20 15:22:32 +0200 |
commit | beb2beba3b4802c6969a5595197e25e7a5483fa3 (patch) | |
tree | f906691e6a29d39760cb6005c67272194f097da6 /src/core | |
parent | 73d7b9d7753d35c63f24defe6d26c7c06ffa3cce (diff) | |
download | irssi-beb2beba3b4802c6969a5595197e25e7a5483fa3.zip |
Revert "Don't proceed with cmd_msg if there was an error splitting msg"
This reverts commit bd83852d646de28f2e0fe01efe7c9236aa4074d4.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/chat-commands.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/chat-commands.c b/src/core/chat-commands.c index 77f02aa2..d5a133f8 100644 --- a/src/core/chat-commands.c +++ b/src/core/chat-commands.c @@ -404,10 +404,7 @@ static void cmd_msg(const char *data, SERVER_REC *server, WI_ITEM_REC *item) else splitmsgs = singlemsg; - /* splitmsgs may be NULL if there was an error */ - g_warn_if_fail(splitmsgs != NULL); - - while (splitmsgs && (m = splitmsgs[n++])) { + while ((m = splitmsgs[n++])) { signal_emit("server sendmsg", 4, server, target, m, GINT_TO_POINTER(target_type)); signal_emit(target_type == SEND_TARGET_CHANNEL ? |