From ead986d6852a5e8d53fdaf29fdf227f030a28e7d Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 7 Apr 2008 22:14:21 +0000 Subject: Unrestrict users before REG_ALL git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9407 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_shun.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules/m_shun.cpp') diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index e728fe2f1..e09c068ca 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -158,6 +158,9 @@ 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")) { // Don't let them issue cmd if they are shunned.. @@ -168,7 +171,7 @@ class ModuleShun : public Module return 1; } } - + return 0; } -- cgit v1.3.1-10-gc9f91