From 0f95a488541ad8e8750d1f7d50a906a0c9bdb050 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 28 Dec 2004 07:52:56 +0000 Subject: Fixed bug in notice display when no '!' is found in host --- src/irc/irc-recv.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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, ' '); -- cgit v1.2.3