From 0f95a488541ad8e8750d1f7d50a906a0c9bdb050 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 28 Dec 2004 07:52:56 +0000 Subject: [PATCH] Fixed bug in notice display when no '!' is found in host --- src/irc/irc-recv.c | 6 +++++- weechat/src/irc/irc-recv.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/irc/irc-recv.c b/src/irc/irc-recv.c index 29fb649da..166d9afda 100644 --- a/src/irc/irc-recv.c +++ b/src/irc/irc-recv.c @@ -714,8 +714,12 @@ irc_cmd_recv_notice (t_irc_server *server, char *host, char *arguments) { pos = strchr (host, '!'); if (pos) + { pos[0] = '\0'; - host2 = pos + 1; + host2 = pos + 1; + } + else + host2 = NULL; } pos = strchr (arguments, ' '); diff --git a/weechat/src/irc/irc-recv.c b/weechat/src/irc/irc-recv.c index 29fb649da..166d9afda 100644 --- a/weechat/src/irc/irc-recv.c +++ b/weechat/src/irc/irc-recv.c @@ -714,8 +714,12 @@ irc_cmd_recv_notice (t_irc_server *server, char *host, char *arguments) { pos = strchr (host, '!'); if (pos) + { pos[0] = '\0'; - host2 = pos + 1; + host2 = pos + 1; + } + else + host2 = NULL; } pos = strchr (arguments, ' ');