summaryrefslogtreecommitdiff
path: root/src/modules/m_helpop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_helpop.cpp')
-rw-r--r--src/modules/m_helpop.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp
index e503952d6..5680a239b 100644
--- a/src/modules/m_helpop.cpp
+++ b/src/modules/m_helpop.cpp
@@ -99,7 +99,7 @@ class cmd_helpop : public command_t
if(output != "")
{
- Srv->SendTo(NULL,user,"290 "+std::string(user->nick)+" :"+output);
+ user->WriteServ("290 "+std::string(user->nick)+" :"+output);
}
}
}
@@ -117,7 +117,7 @@ class cmd_helpop : public command_t
output = helpop->ReadValue("nohelpo", std::string(a), 0);
if (output != "")
{
- Srv->SendTo(NULL,user,"290 "+std::string(user->nick)+" :"+output);
+ user->WriteServ("290 "+std::string(user->nick)+" :"+output);
}
}
// Forward.
@@ -154,7 +154,7 @@ bool do_helpop(const char** parameters, int pcnt, userrec *src)
output = helpop->ReadValue(search, a, 0);
if (output != "")
{
- Srv->SendTo(NULL,src,"290 "+std::string(src->nick)+" :"+output);
+ src->WriteServ("290 "+std::string(src->nick)+" :"+output);
nlines++;
}
}
@@ -249,7 +249,7 @@ class ModuleHelpop : public Module
{
if (dst->IsModeSet('h'))
{
- Srv->SendTo(NULL,src,"310 "+std::string(src->nick)+" "+std::string(dst->nick)+" :is available for help.");
+ src->WriteServ("310 "+std::string(src->nick)+" "+std::string(dst->nick)+" :is available for help.");
}
}