From 3039e0663f7e45a45e9574a6aa7463bbe77e849f Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 16 Apr 2008 00:36:20 +0000 Subject: Change that allows the m_override module to not announce a key override for a user that specified the right key git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9516 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_override.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_override.cpp') diff --git a/src/modules/m_override.cpp b/src/modules/m_override.cpp index a20d2fd02..af7201882 100644 --- a/src/modules/m_override.cpp +++ b/src/modules/m_override.cpp @@ -224,7 +224,7 @@ class ModuleOverride : public Module return ACR_DEFAULT; } - virtual int OnUserPreJoin(User* user, Channel* chan, const char* cname, std::string &privs) + virtual int OnUserPreJoin(User* user, Channel* chan, const char* cname, std::string &privs, const std::string &keygiven) { if (IS_OPER(user)) { @@ -243,7 +243,7 @@ class ModuleOverride : public Module return -1; } - if ((*chan->key) && (CanOverride(user,"KEY"))) + if ((*chan->key) && (CanOverride(user,"KEY")) && !strcasecmp(keygiven.c_str(), chan->key)) { if (NoisyOverride) chan->WriteChannelWithServ(ServerInstance->Config->ServerName, "NOTICE %s :%s used oper-override to bypass the channel key", cname, user->nick); -- cgit v1.2.3