]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - extensions/m_okick.c
Enforce TS rules on MLOCKs.
[irc/rqf/shadowircd.git] / extensions / m_okick.c
index f3733162c160a18383774abef3fe43d6458c8f5f..780e1ede0af1a6d28c70f7d2de1d674cb2dd4f7a 100644 (file)
@@ -20,7 +20,6 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: m_okick.c 3554 2007-08-10 22:31:14Z jilles $
  */
 
 #include "stdinc.h"
@@ -38,6 +37,8 @@
 #include "s_conf.h"
 #include "s_serv.h"
 
+struct module_modes ModuleModes;
+
 static int mo_okick(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]);
 
 
@@ -141,7 +142,7 @@ mo_okick(struct Client *client_p, struct Client *source_p, int parc, const char
        rb_snprintf(text, sizeof(text), "K%s", who->id);
 
        /* we don't need to track NOREJOIN stuff unless it's our client being kicked */
-       if(MyClient(who) && chptr->mode.mode & MODE_NOREJOIN)
+       if(MyClient(who) && chptr->mode.mode & ModuleModes.MODE_NOREJOIN)
                channel_metadata_time_add(chptr, text, rb_current_time(), "KICKNOREJOIN");
        return 0;
 }