From b47db00e58a1781bbc1411808ccb6f60b3f505de Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Tue, 18 Dec 2007 00:15:54 +0100 Subject: [PATCH] createauthonly: allow opers through explicitly --- extensions/createauthonly.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/createauthonly.c b/extensions/createauthonly.c index 4f7477ac..faf10e57 100644 --- a/extensions/createauthonly.c +++ b/extensions/createauthonly.c @@ -1,8 +1,8 @@ /* * This module restricts channel creation to authenticated users - * only. This module could be useful for running private chat - * systems, or if a network gets droneflood problems. It will - * return ERR_NEEDREGGEDNICK on failure. + * and IRC operators only. This module could be useful for + * running private chat systems, or if a network gets droneflood + * problems. It will return ERR_NEEDREGGEDNICK on failure. * -- nenolod * * $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; - if (*source_p->user->suser == '\0') + if (*source_p->user->suser == '\0' && !IsOper(source_p)) data->approved = ERR_NEEDREGGEDNICK; }