mirror of
https://github.com/weechat/weechat.git
synced 2026-07-06 17:53:13 +02:00
Fixed bug in notice display when no '!' is found in host
This commit is contained in:
+5
-1
@@ -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, ' ');
|
||||
|
||||
@@ -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, ' ');
|
||||
|
||||
Reference in New Issue
Block a user