aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_operjoin.cpp
diff options
context:
space:
mode:
authorGravatar brain2007-02-12 19:26:31 +0000
committerGravatar brain2007-02-12 19:26:31 +0000
commit4917e95f693d190ea9ee60a903a115a4eb54572e (patch)
tree19573f66008e79234d126712b5b9cbb217a7819c /src/modules/m_operjoin.cpp
parentOnly apply force join to local clients (diff)
downloadinspircd++-4917e95f693d190ea9ee60a903a115a4eb54572e.tar.gz
inspircd++-4917e95f693d190ea9ee60a903a115a4eb54572e.tar.bz2
inspircd++-4917e95f693d190ea9ee60a903a115a4eb54572e.zip
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/m_operjoin.cpp')
-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;