aboutsummaryrefslogtreecommitdiffstats
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
parentInline help is now translated with gettext (diff)
downloadweechat-0f95a488541ad8e8750d1f7d50a906a0c9bdb050.tar.xz
weechat-0f95a488541ad8e8750d1f7d50a906a0c9bdb050.zip
Fixed bug in notice display when no '!' is found in host
-rw-r--r--src/irc/irc-recv.c6
-rw-r--r--weechat/src/irc/irc-recv.c6
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, ' ');