Skip to content

Commit

Permalink
Update restrict-chans.c
Browse files Browse the repository at this point in the history
  • Loading branch information
ValwareIRC authored Jul 18, 2024
1 parent b681703 commit 600974f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/restrict-chans.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ MOD_TEST()
int isreg_check_join(Client *client, Channel *channel, const char *key, char **errmsg)
{
Client *serv_server;
if (!SASL_SERVER || !(serv_server = find_server(SASL_SERVER, NULL)) || !(serv_server = find_server(SERVICES_NAME, NULL)))
if (!(serv_server = find_server(SASL_SERVER, NULL)) || !(serv_server = find_server(SERVICES_NAME, NULL)))
return HOOK_CONTINUE;

if (has_channel_mode(channel, 'P')) // it's permanent, continue;
Expand All @@ -79,7 +79,7 @@ int isreg_check_join(Client *client, Channel *channel, const char *key, char **e
int isreg_can_join(Client *client, Channel *channel, const char *key)
{
Client *serv_server;
if (!SASL_SERVER || !(serv_server = find_server(SASL_SERVER, NULL)) || !(serv_server = find_server(SERVICES_NAME, NULL)))
if (!(serv_server = find_server(SASL_SERVER, NULL)) || !(serv_server = find_server(SERVICES_NAME, NULL)))
return HOOK_CONTINUE;

if (has_channel_mode(channel, 'P')) // it's permanent, continue;
Expand Down

0 comments on commit 600974f

Please sign in to comment.