From 4917e95f693d190ea9ee60a903a115a4eb54572e Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 12 Feb 2007 19:26:31 +0000 Subject: 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 --- src/modules/m_operjoin.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 operChans; -- cgit v1.2.3