#include "s_conf.h"
#include "snomask.h"
#include "numeric.h"
+#include "s_newconf.h"
-static void h_can_create_channel_authenticated(hook_data_client_approval *);
static const char restrict_desc[] = "Restricts channel creation to authenticated users and IRC operators only";
+static void h_can_create_channel_authenticated(hook_data_client_approval *);
+
mapi_hfn_list_av1 restrict_hfnlist[] = {
{ "can_create_channel", (hookfn) h_can_create_channel_authenticated },
{ NULL, NULL }
{
struct Client *source_p = data->client;
- if (*source_p->user->suser == '\0' && !IsOper(source_p))
+ if (*source_p->user->suser == '\0' && !IsOperGeneral(source_p))
data->approved = ERR_NEEDREGGEDNICK;
}