summaryrefslogtreecommitdiff
path: root/src/modules/m_shun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_shun.cpp')
-rw-r--r--src/modules/m_shun.cpp5
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;
}