From 2a14a087c4d778562120b54d62f893faaf964313 Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 8 Apr 2008 10:29:45 +0000 Subject: [PATCH] REG_ALL check is not required, since OnUserConnect is triggered after NICK/USER recieved, but we don't want to bother trying to SHUN remote users too, so check IS_LOCAL in the connection event git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9419 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_shun.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index a5c98dbbf..07ad36ddb 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -182,6 +182,9 @@ class ModuleShun : public Module virtual void OnUserConnect(User* user) { + if (!IS_LOCAL(user)) + return 0; + // Apply lines on user connect XLine *rl = ServerInstance->XLines->MatchesLine("SHUN", user); @@ -194,9 +197,6 @@ class ModuleShun : public Module virtual int OnPreCommand(const std::string &command, const char* const*parameters, int pcnt, User* user, bool validated, const std::string &original_line) { - if (user->registered != REG_ALL) - return 0; - if((command != "PONG") && (command != "PING")) { if (user->GetExt("shunned")) -- 2.39.5