]> jfr.im git - solanum.git/blobdiff - extensions/createoperonly.c
Use const hook data where possible
[solanum.git] / extensions / createoperonly.c
index 1fdb41d33ae0d860765145bd420681a0ab1509f0..f763d676c02052c701a5a180c8e2409015b06074 100644 (file)
@@ -16,6 +16,8 @@
 #include "snomask.h"
 #include "numeric.h"
 
+static const char restrict_desc[] = "Restricts channel creation to IRC operators";
+
 static void h_can_create_channel_authenticated(hook_data_client_approval *);
 
 mapi_hfn_list_av1 restrict_hfnlist[] = {
@@ -23,7 +25,7 @@ mapi_hfn_list_av1 restrict_hfnlist[] = {
        { NULL, NULL }
 };
 
-DECLARE_MODULE_AV2(createoperonly, NULL, NULL, NULL, NULL, restrict_hfnlist, NULL, NULL, NULL);
+DECLARE_MODULE_AV2(createoperonly, NULL, NULL, NULL, NULL, restrict_hfnlist, NULL, NULL, restrict_desc);
 
 static void
 h_can_create_channel_authenticated(hook_data_client_approval *data)