summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2004-12-28 07:52:56 +0000
committerSebastien Helleu <flashcode@flashtux.org>2004-12-28 07:52:56 +0000
commit0f95a488541ad8e8750d1f7d50a906a0c9bdb050 (patch)
tree3052f8457bce7d90078bbcf95a957960b93de050 /src
parent39b5f07d6fccda70977fb86e490e216fe66abac8 (diff)
downloadweechat-0f95a488541ad8e8750d1f7d50a906a0c9bdb050.zip
Fixed bug in notice display when no '!' is found in host
Diffstat (limited to 'src')
-rw-r--r--src/irc/irc-recv.c6
1 files changed, 5 insertions, 1 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, ' ');