summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_operwho.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_operwho.cpp b/src/modules/m_operwho.cpp
index 7842fd08f..e4dbf3235 100644
--- a/src/modules/m_operwho.cpp
+++ b/src/modules/m_operwho.cpp
@@ -64,7 +64,7 @@ class ModuleOperWho : public Module
virtual int OnPreCommand(std::string command, char **parameters, int pcnt, userrec *user, bool validated)
{
- if (!*user->oper)
+ if ((!*user->oper) || (command != "WHO"))
return 0;
chanrec* Ptr = NULL;