diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2004-12-28 07:52:56 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2004-12-28 07:52:56 +0000 |
commit | 0f95a488541ad8e8750d1f7d50a906a0c9bdb050 (patch) | |
tree | 3052f8457bce7d90078bbcf95a957960b93de050 | |
parent | Inline help is now translated with gettext (diff) | |
download | weechat-0f95a488541ad8e8750d1f7d50a906a0c9bdb050.tar.xz weechat-0f95a488541ad8e8750d1f7d50a906a0c9bdb050.zip |
Fixed bug in notice display when no '!' is found in host
-rw-r--r-- | src/irc/irc-recv.c | 6 | ||||
-rw-r--r-- | 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, ' '); |