1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 15:43:12 +02:00

websocket module will now only disable show-connect-info on the ports

that have listen::options::websocket. It will no longer disable it
on all ports.
This commit is contained in:
Bram Matthys
2019-10-06 07:37:55 +02:00
parent ba7ff01e0f
commit d2a93c3a03
5 changed files with 26 additions and 20 deletions
+18
View File
@@ -639,3 +639,21 @@ int is_handshake_finished(Client *client)
return 0;
}
/** Should we show connection info to the user?
* This depends on the set::show-connect-info setting but also
* on various other properties, such as serversonly ports,
* websocket, etc.
* If someone needs it, then we can also call a hook here. Just tell us.
*/
int should_show_connect_info(Client *client)
{
if (SHOWCONNECTINFO &&
!client->serv &&
!IsServersOnlyListener(client->local->listener) &&
!client->local->listener->websocket_options)
{
return 1;
}
return 0;
}