summaryrefslogtreecommitdiff
path: root/src/modules/m_helpop.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-09 17:52:10 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-09 17:52:10 +0000
commit2591562ada4cb1f866e5d1c98340fb19332b3844 (patch)
tree1cf18676c1851c39322d20fa208c0221e23ba6ac /src/modules/m_helpop.cpp
parent1cbf29e3cd070c12437a657b47fc433008b2c74d (diff)
Move tons more stuff into class InspIRCd
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4819 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_helpop.cpp')
-rw-r--r--src/modules/m_helpop.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp
index 69f61ab1a..28e826276 100644
--- a/src/modules/m_helpop.cpp
+++ b/src/modules/m_helpop.cpp
@@ -26,6 +26,8 @@ using namespace std;
static ConfigReader *helpop;
static Server *Srv;
+extern InspIRCd* ServerInstance;
+
bool do_helpop(const char**, int, userrec*);
void sendtohelpop(userrec*, int, const char**);
@@ -177,7 +179,7 @@ void sendtohelpop(userrec *src, int pcnt, const char **params)
{
line = line + std::string(params[i]) + " ";
}
- Srv->SendToModeMask("oh",WM_AND,line);
+ ServerInstance->WriteMode("oh",WM_AND,line.c_str());
}
class HelpopException : public ModuleException