]> jfr.im git - solanum.git/blobdiff - extensions/createauthonly.c
chmode: use NULL for priv argument when auspex:cmodes priv is not needed
[solanum.git] / extensions / createauthonly.c
index 0a7018441724fb6e85bf4005022249d1eda1cf94..78ad3da287bc4f80f93f8026e4590c54b11eb826 100644 (file)
 #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 }
@@ -31,6 +33,6 @@ h_can_create_channel_authenticated(hook_data_client_approval *data)
 {
        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;
 }