]> jfr.im git - solanum.git/blobdiff - extensions/restrict-unauthenticated.c
explicitly show IP in SNO_BANNED snotes
[solanum.git] / extensions / restrict-unauthenticated.c
index 5daacacd7bcc57771168ad1b7b3ab59d1fda34b5..9ce4ef08ea3c3c896183c5e8a9aa2f772b180a8a 100644 (file)
 #include "privilege.h"
 #include "s_newconf.h"
 
+static const char restrict_desc[] =
+       "Restrict unautenticated users from doing anything as channel ops";
+
 static void hack_channel_access(void *data);
 
 mapi_hfn_list_av1 restrict_unauthenticated_hfnlist[] = {
-       { "get_channel_access", (hookfn) hack_channel_access },
+       { "get_channel_access", hack_channel_access },
        { NULL, NULL }
 };
 
@@ -35,5 +38,5 @@ hack_channel_access(void *vdata)
                data->approved = 0;
 }
 
-DECLARE_MODULE_AV1(restrict_unauthenticated, NULL, NULL, NULL, NULL,
-                       restrict_unauthenticated_hfnlist, NULL);
+DECLARE_MODULE_AV2(restrict_unauthenticated, NULL, NULL, NULL, NULL,
+                       restrict_unauthenticated_hfnlist, NULL, NULL, restrict_desc);