1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 08:13:14 +02:00

relay: add message when address family is not supported by protocol (on socket creation)

This commit is contained in:
Sebastien Helleu
2013-01-08 08:14:07 +01:00
parent 1a646d5dbf
commit 7d1ad59dde
12 changed files with 62 additions and 12 deletions
+6
View File
@@ -382,6 +382,12 @@ relay_server_create_socket (struct t_relay_server *server)
_("%s%s: cannot create socket: error %d %s"),
weechat_prefix ("error"), RELAY_PLUGIN_NAME,
errno, strerror (errno));
if (errno == EAFNOSUPPORT)
{
weechat_printf (NULL,
_("%s%s: try /set relay.network.ipv6 off"),
weechat_prefix ("error"), RELAY_PLUGIN_NAME);
}
return 0;
}