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:
prozacx
2005-05-26 20:42:13 +00:00
parent 1c90fd9beb
commit c52542e469
12 changed files with 53 additions and 59 deletions

View File

@@ -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")