summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-12 19:26:31 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-02-12 19:26:31 +0000
commit4917e95f693d190ea9ee60a903a115a4eb54572e (patch)
tree19573f66008e79234d126712b5b9cbb217a7819c /src/modules
parent72ea73d0be16c2fc30a11c274e8797c81829ae14 (diff)
I'm not sure OnPostOper is called for remote opering anyway, but to be sure, dont execute it for remote users in this module (just wastes cpu time)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6579 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_operjoin.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_operjoin.cpp b/src/modules/m_operjoin.cpp
index ae6abce0b..7150c5b83 100644
--- a/src/modules/m_operjoin.cpp
+++ b/src/modules/m_operjoin.cpp
@@ -76,6 +76,9 @@ class ModuleOperjoin : public Module
virtual void OnPostOper(userrec* user, const std::string &opertype)
{
+ if (!IS_LOCAL(user))
+ return;
+
if (!operChan.empty())
{
std::vector<std::string> operChans;