createauthonly: allow opers through explicitly
This commit is contained in:
parent
326217c4d0
commit
b47db00e58
1 changed files with 4 additions and 4 deletions
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
* This module restricts channel creation to authenticated users
|
* This module restricts channel creation to authenticated users
|
||||||
* only. This module could be useful for running private chat
|
* and IRC operators only. This module could be useful for
|
||||||
* systems, or if a network gets droneflood problems. It will
|
* running private chat systems, or if a network gets droneflood
|
||||||
* return ERR_NEEDREGGEDNICK on failure.
|
* problems. It will return ERR_NEEDREGGEDNICK on failure.
|
||||||
* -- nenolod
|
* -- nenolod
|
||||||
*
|
*
|
||||||
* $Id: createauthonly.c 833 2006-02-15 00:27:59Z jilles $
|
* $Id: createauthonly.c 833 2006-02-15 00:27:59Z jilles $
|
||||||
|
@ -32,6 +32,6 @@ h_can_create_channel_authenticated(hook_data_client_approval *data)
|
||||||
{
|
{
|
||||||
struct Client *source_p = data->client;
|
struct Client *source_p = data->client;
|
||||||
|
|
||||||
if (*source_p->user->suser == '\0')
|
if (*source_p->user->suser == '\0' && !IsOper(source_p))
|
||||||
data->approved = ERR_NEEDREGGEDNICK;
|
data->approved = ERR_NEEDREGGEDNICK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue