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:
+18
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user