]> jfr.im git - solanum.git/blobdiff - extensions/extb_oper.c
Remove Windows support
[solanum.git] / extensions / extb_oper.c
index 0b257332020804c33043d0370ad4c13ca89b4e2b..0400e724ca3a8e8644948bd02a49a24f143ae0b8 100644 (file)
 #include "s_newconf.h"
 #include "ircd.h"
 
+static const char extb_desc[] = "Oper ($o) extban type";
+
 static int _modinit(void);
 static void _moddeinit(void);
 static int eb_oper(const char *data, struct Client *client_p, struct Channel *chptr, long mode_type);
 
-DECLARE_MODULE_AV1(extb_oper, _modinit, _moddeinit, NULL, NULL, NULL, "$Revision: 1299 $");
+DECLARE_MODULE_AV2(extb_oper, _modinit, _moddeinit, NULL, NULL, NULL, NULL, NULL, extb_desc);
 
 static int
 _modinit(void)
@@ -40,7 +42,7 @@ static int eb_oper(const char *data, struct Client *client_p,
        if (data != NULL)
        {
                struct PrivilegeSet *set = privilegeset_get(data);
-               if (set != NULL && client_p->localClient->privset == set)
+               if (set != NULL && client_p->user->privset == set)
                        return EXTBAN_MATCH;
 
                /* $o:admin or whatever */