diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-07 22:14:21 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-07 22:14:21 +0000 |
commit | ead986d6852a5e8d53fdaf29fdf227f030a28e7d (patch) | |
tree | f6139f940faedaf3a6c43f6c7f896e34ef42a1e7 | |
parent | db3e7d6cd7a3d46d054b6f7169c93af3619e8105 (diff) |
Unrestrict users before REG_ALL
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9407 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_shun.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |