diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-20 09:24:10 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-20 09:24:10 +0000 |
commit | 92290c10bb690062a7181129f0332fec120a15ce (patch) | |
tree | 838a22e6bc3df2fce78a3272b76cfb775c2305ce /src/modules | |
parent | 4f78f5157f2a1db67628a922b0320f3162c12d87 (diff) |
Some pointless changes to this in the course of bugfinding
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@681 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_helpop.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp index 2e30ae86a..5b4928543 100644 --- a/src/modules/m_helpop.cpp +++ b/src/modules/m_helpop.cpp @@ -88,7 +88,7 @@ bool do_helpop(char **parameters, int pcnt, userrec *src) for (int i = 1; output != ""; i++) { snprintf(a,MAXBUF,"line%d",i); - output = helpop->ReadValue(std::string(search), std::string(a), 0); + output = helpop->ReadValue(search, a, 0); if (output != "") { Srv->SendTo(NULL,src,"290 "+std::string(src->nick)+" :"+output); nlines++; @@ -147,18 +147,13 @@ class ModuleHelpop : public Module if (!Srv->AddExtendedMode('h',MT_CLIENT,true,0,0)) { - Srv->Log(DEFAULT,"Unable to clame the +h usermode."); + Srv->Log(DEFAULT,"Unable to claim the +h usermode."); printf("m_helpop: Unable to claim the +h usermode!"); exit(0); } // Loads of comments, untill supported properly. - /*if (!*/Srv->AddCommand("HELPOP",handle_helpop,0,0);/*) - { - Srv->Log(DEFAULT,"Unable to claim the HELPOP command."); - printf("m_helpop: Unable to claim the HELPOP command."); - exit(0); - }*/ + Srv->AddCommand("HELPOP",handle_helpop,0,0); } @@ -171,7 +166,8 @@ class ModuleHelpop : public Module return 0; } - virtual void OnWhois(userrec* src, userrec* dst) { + virtual void OnWhois(userrec* src, userrec* dst) + { if (strchr(src->modes,'h')) { Srv->SendTo(NULL,src,"310 "+std::string(src->nick)+" "+std::string(dst->nick)+" :is available for help."); |