]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/core/m_kick.c
Do not install ban .conf files (like kline.conf, rsv.conf, etc) as they aren't used...
[irc/rqf/shadowircd.git] / modules / core / m_kick.c
index 07d6c7dbc288fd5127cfb9885b4dc1f8fcf5a9f0..41a9dd4bc993fb9bd7518643b1ddeabacc2cc39a 100644 (file)
@@ -39,8 +39,6 @@
 #include "s_conf.h"
 #include "hook.h"
 
-struct module_modes ModuleModes;
-
 static int m_kick(struct Client *, struct Client *, int, const char **);
 #define mg_kick { m_kick, 3 }
 
@@ -116,7 +114,7 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p
                                        is_override = 1;
                                else
                                {
-                                       sendto_one(source_p, ":%s 482 %s %s :You do not have the proper privledges to kick this user",
+                                       sendto_one(source_p, ":%s 482 %s %s :You do not have the proper privileges to kick this user",
                                                        me.name, source_p->name, name);
                                        return 0;
                                }
@@ -167,7 +165,7 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p
                        return 0;
                }
 
-               if(MyClient(source_p) && chptr->mode.mode & ModuleModes.MODE_NOKICK)
+               if(MyClient(source_p) && chptr->mode.mode & MODE_NOKICK)
                {
                        sendto_one_numeric(source_p, ERR_NOKICK,
                                        form_str(ERR_NOKICK),
@@ -175,7 +173,7 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p
                        return 0;
                }
 
-               if (MyClient(source_p) && chptr->mode.mode & ModuleModes.MODE_NOOPERKICK && IsOper(who))
+               if (MyClient(source_p) && chptr->mode.mode & MODE_NOOPERKICK && IsOper(who))
                {
                        sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
                                        "Overriding KICK from %s on %s in %s (channel is +M)",
@@ -239,7 +237,7 @@ m_kick(struct Client *client_p, struct Client *source_p, int parc, const char *p
                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 & ModuleModes.MODE_NOREJOIN)
+               if(MyClient(who) && chptr->mode.mode & MODE_NOREJOIN)
                        channel_metadata_time_add(chptr, text, rb_current_time(), "KICKNOREJOIN");
        }
        else if (MyClient(source_p))