]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_knock.c
Backed out changeset 3097ade953f5
[irc/rqf/shadowircd.git] / modules / m_knock.c
index 586ca157928f7f68a95cd385458a16d181bf25e8..67d56fbd64414f3f889fec980b99ec3b5d46b1ee 100644 (file)
@@ -36,8 +36,6 @@
 #include "modules.h"
 #include "s_serv.h"
 
-struct module_modes ModuleModes;
-
 static int m_knock(struct Client *, struct Client *, int, const char **);
 
 struct Message knock_msgtab = {
@@ -159,7 +157,7 @@ m_knock(struct Client *client_p, struct Client *source_p, int parc, const char *
        chptr->last_knock = rb_current_time();
 
        if(ConfigChannel.use_knock)
-               sendto_channel_local(chptr->mode.mode & ModuleModes.MODE_FREEINVITE ? ALL_MEMBERS : ONLY_CHANOPS,
+               sendto_channel_local(chptr->mode.mode & MODE_FREEINVITE ? ALL_MEMBERS : ONLY_CHANOPS,
                                     chptr, form_str(RPL_KNOCK),
                                     me.name, name, name, source_p->name,
                                     source_p->username, source_p->host);