]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_rline.cpp
Add support for <sqloper:hash> value, references 'md5', 'sha256' and finds the requir...
[user/henk/code/inspircd.git] / src / modules / extra / m_rline.cpp
index 652b93909f478eae6f1259ab431f51073c1b4412..1b2cad8fde2ffbcbf22c6a7c523403eda353148a 100644 (file)
@@ -62,7 +62,7 @@ class CoreExport RLine : public XLine
        {
                std::string compare = std::string(u->nick) + "!" + u->ident + "@" + u->host + " " + u->fullname;
 
-               ServerInstance->Log(DEBUG, "Matching " + matchtext + " against string " + compare);
+               ServerInstance->Logs->Log("m_rline",DEBUG, "Matching " + matchtext + " against string " + compare);
 
                if (pcre_exec(regex, NULL, compare.c_str(), compare.length(), 0, 0, NULL, 0) > -1)
                {
@@ -126,12 +126,12 @@ class CoreExport RLineFactory : public XLineFactory
 class CommandRLine : public Command
 {
  public:
-       CommandRLine (InspIRCd* Instance) : Command(Instance,"RLINE", 'o', 1)
+       CommandRLine (InspIRCd* Instance) : Command(Instance,"RLINE", "o", 1)
        {
                this->source = "m_rline.so";
        }
 
-       CmdResult Handle (const char** parameters, int pcnt, User *user)
+       CmdResult Handle (const char* const* parameters, int pcnt, User *user)
        {
 
                if (pcnt >= 3)
@@ -214,7 +214,7 @@ class ModuleRLine : public Module
 
        virtual Version GetVersion()
        {
-               return Version(1,1,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
+               return Version(1,2,0,0,VF_COMMON|VF_VENDOR,API_VERSION);
        }
 };