#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 }
};
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);