]> jfr.im git - irc/rizon/znc.git/commitdiff
Change OnStatusCommand to use non-const variable like most of the EModRet modulecalls
authorsilverleo <redacted>
Sun, 26 Oct 2008 19:47:17 +0000 (19:47 +0000)
committersilverleo <redacted>
Sun, 26 Oct 2008 19:47:17 +0000 (19:47 +0000)
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1262 726aef4b-f618-498e-8847-2d620e286838

Modules.cpp
Modules.h
modules/modperl.cpp
modules/sample.cpp
modules/shell.cpp

index fac7d0281c93cbea97ff273ce3c0fb901faa9e48..d16f940cf7412954fabae937700b0056ea07111e 100644 (file)
@@ -462,7 +462,7 @@ void CModule::OnMode(const CNick& OpNick, CChan& Channel, char uMode, const CStr
 
 CModule::EModRet CModule::OnRaw(CString& sLine) { return CONTINUE; }
 
-CModule::EModRet CModule::OnStatusCommand(const CString& sCommand) { return CONTINUE; }
+CModule::EModRet CModule::OnStatusCommand(CString& sCommand) { return CONTINUE; }
 void CModule::OnModCommand(const CString& sCommand) {}
 void CModule::OnModNotice(const CString& sMessage) {}
 void CModule::OnModCTCP(const CString& sMessage) {}
@@ -619,7 +619,7 @@ bool CModules::OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) { MODHA
 bool CModules::OnPrivNotice(CNick& Nick, CString& sMessage) { MODHALTCHK(OnPrivNotice(Nick, sMessage)); }
 bool CModules::OnChanNotice(CNick& Nick, CChan& Channel, CString& sMessage) { MODHALTCHK(OnChanNotice(Nick, Channel, sMessage)); }
 bool CModules::OnTopic(CNick& Nick, CChan& Channel, CString& sTopic) { MODHALTCHK(OnTopic(Nick, Channel, sTopic)); }
-bool CModules::OnStatusCommand(const CString& sCommand) { MODHALTCHK(OnStatusCommand(sCommand)); }
+bool CModules::OnStatusCommand(CString& sCommand) { MODHALTCHK(OnStatusCommand(sCommand)); }
 bool CModules::OnModCommand(const CString& sCommand) { MODUNLOADCHK(OnModCommand(sCommand)); return false; }
 bool CModules::OnModNotice(const CString& sMessage) { MODUNLOADCHK(OnModNotice(sMessage)); return false; }
 bool CModules::OnModCTCP(const CString& sMessage) { MODUNLOADCHK(OnModCTCP(sMessage)); return false; }
index bd224b9f233fbd953033eb3780f6fbaa7604f5d1..1fcbee4dc8e8afe04f8308c22e1814868398b982 100644 (file)
--- a/Modules.h
+++ b/Modules.h
@@ -243,7 +243,7 @@ public:
 
        virtual EModRet OnRaw(CString& sLine);
 
-       virtual EModRet OnStatusCommand(const CString& sCommand);
+       virtual EModRet OnStatusCommand(CString& sCommand);
        virtual void OnModCommand(const CString& sCommand);
        virtual void OnModNotice(const CString& sMessage);
        virtual void OnModCTCP(const CString& sMessage);
@@ -384,7 +384,7 @@ public:
 
        virtual bool OnRaw(CString& sLine);
 
-       virtual bool OnStatusCommand(const CString& sCommand);
+       virtual bool OnStatusCommand(CString& sCommand);
        virtual bool OnModCommand(const CString& sCommand);
        virtual bool OnModNotice(const CString& sMessage);
        virtual bool OnModCTCP(const CString& sMessage);
index e8130f0582bd98998980039a6ee6ff00bf13d146..a9de569fc472841a1900724e0905572f24cf1df6 100644 (file)
@@ -471,7 +471,7 @@ public:
 
        bool Eval(const CString & sScript, const CString & sFuncName = ZNCEvalCB);
 
-       virtual EModRet OnStatusCommand(const CString& sLine)
+       virtual EModRet OnStatusCommand(CString& sLine)
        {
                CString sCommand = sLine.Token(0);
 
index fe6a03270d1f659da78e88ec45a1c71595216d9f..e0a7f025a1eeb52d0adfd77240a475ead8eae4e7 100644 (file)
@@ -210,7 +210,7 @@ public:
                }
        }
 
-       virtual EModRet OnStatusCommand(const CString& sCommand) {
+       virtual EModRet OnStatusCommand(CString& sCommand) {
                if (sCommand.Equals("SAMPLE")) {
                        PutModule("Hi, I'm your friendly sample module.");
                        return HALT;
index c7f1e759b1628947aaced491af8d5ac46202a991..5c22e2eb9141130c0e06c1ffc33c2b720c1eb7e5 100644 (file)
@@ -114,7 +114,7 @@ public:
                }
        }
 
-       virtual EModRet OnStatusCommand(const CString& sCommand) {
+       virtual EModRet OnStatusCommand(CString& sCommand) {
                if (sCommand.Equals("SHELL")) {
                        PutShell("-- ZNC Shell Service --");
                        return HALT;