mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Moved GetDescription() into second argument of MODULEDEFS()
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@366 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -98,10 +98,6 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual CString GetDescription() {
|
||||
return "Gives shell access.";
|
||||
}
|
||||
|
||||
virtual void OnModCommand(const CString& sCommand) {
|
||||
if ((strcasecmp(sCommand.c_str(), "cd") == 0) || (strncasecmp(sCommand.c_str(), "cd ", 3) == 0)) {
|
||||
CString sPath = CUtils::ChangeDir(m_sPath, ((sCommand.length() == 2) ? CString(m_pUser->GetHomePath()) : CString(sCommand.substr(3))), m_pUser->GetHomePath());
|
||||
@@ -214,5 +210,5 @@ void CExecSock::Disconnected() {
|
||||
m_pParent->PutShell("znc$");
|
||||
}
|
||||
|
||||
MODULEDEFS(CShellMod)
|
||||
MODULEDEFS(CShellMod, "Gives shell access")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user