]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/core/m_part.c
Backed out changeset 3097ade953f5
[irc/rqf/shadowircd.git] / modules / core / m_part.c
index 334665b6ed88188ac7ad7c53776ddeb80b3e8fca..c69f314e5ff531da3a87871cba8493f1f681a90d 100644 (file)
@@ -39,7 +39,6 @@
 #include "s_conf.h"
 #include "packet.h"
 #include "inline/stringops.h"
-#include "channel.h"
 
 static int m_part(struct Client *, struct Client *, int, const char **);
 
@@ -55,7 +54,6 @@ DECLARE_MODULE_AV1(part, NULL, NULL, part_clist, NULL, NULL, "$Revision: 98 $");
 static void part_one_client(struct Client *client_p,
                            struct Client *source_p, char *name, char *reason);
 
-struct module_modes ModuleModes;
 
 /*
 ** m_part
@@ -129,7 +127,7 @@ part_one_client(struct Client *client_p, struct Client *source_p, char *name, ch
                           (source_p->localClient->firsttime +
                            ConfigFileEntry.anti_spam_exit_message_time) < rb_current_time()))))
        {
-               if(chptr->mode.mode & ModuleModes.MODE_NOCOLOR && (!ConfigChannel.exempt_cmode_c || !is_any_op(msptr)))
+               if(chptr->mode.mode & MODE_NOCOLOR && (!ConfigChannel.exempt_cmode_c || !is_any_op(msptr)))
                {
                        rb_strlcpy(reason2, reason, BUFSIZE);
                        strip_colour(reason2);