X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/dab6375a1ee20c724bf93dda872245567b11d733..b0e752b0f9572d4bdef62db949359a58a568d6f5:/modules/core/m_kick.c diff --git a/modules/core/m_kick.c b/modules/core/m_kick.c index 07d6c7d..41a9dd4 100644 --- a/modules/core/m_kick.c +++ b/modules/core/m_kick.c @@ -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))