mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
@@ -44,8 +44,8 @@ public:
|
||||
SetWSock(open("/dev/null", O_WRONLY));
|
||||
}
|
||||
// These next two function's bodies are at the bottom of the file since they reference CShellMod
|
||||
virtual void ReadLine(const CString& sData);
|
||||
virtual void Disconnected();
|
||||
virtual void ReadLine(const CString& sData) override;
|
||||
virtual void Disconnected() override;
|
||||
|
||||
CShellMod* m_pParent;
|
||||
|
||||
@@ -67,7 +67,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual bool OnLoad(const CString& sArgs, CString& sMessage)
|
||||
virtual bool OnLoad(const CString& sArgs, CString& sMessage) override
|
||||
{
|
||||
#ifndef MOD_SHELL_ALLOW_EVERYONE
|
||||
if (!GetUser()->IsAdmin()) {
|
||||
@@ -79,7 +79,7 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual void OnModCommand(const CString& sLine) {
|
||||
virtual void OnModCommand(const CString& sLine) override {
|
||||
CString sCommand = sLine.Token(0);
|
||||
if (sCommand.Equals("cd")) {
|
||||
CString sArg = sLine.Token(1, true);
|
||||
|
||||
Reference in New Issue
Block a user