]> jfr.im git - solanum.git/blobdiff - extensions/createoperonly.c
Merge pull request #288 from edk0/umode-o-split
[solanum.git] / extensions / createoperonly.c
index f763d676c02052c701a5a180c8e2409015b06074..fb004783d14bf8f1760b401f506d76cf924fb4f4 100644 (file)
@@ -15,6 +15,7 @@
 #include "s_conf.h"
 #include "snomask.h"
 #include "numeric.h"
+#include "s_newconf.h"
 
 static const char restrict_desc[] = "Restricts channel creation to IRC operators";
 
@@ -32,7 +33,7 @@ h_can_create_channel_authenticated(hook_data_client_approval *data)
 {
        struct Client *source_p = data->client;
 
-       if (!IsOper(source_p))
+       if (!IsOperGeneral(source_p))
        {
                sendto_one_notice(source_p, ":*** Channel creation is restricted to network staff only.");
                data->approved = ERR_NEEDREGGEDNICK;