mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Fix a cd bug that prevented users from changing dirs with the shell module.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1401 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -70,7 +70,7 @@ public:
|
||||
virtual void OnModCommand(const CString& sLine) {
|
||||
CString sCommand = sLine.Token(0);
|
||||
if (sCommand.Equals("cd")) {
|
||||
CString sArg = sCommand.Token(1, true);
|
||||
CString sArg = sLine.Token(1, true);
|
||||
CString sPath = CDir::ChangeDir(m_sPath, (sArg.empty() ? CString(CZNC::Get().GetHomePath()) : sArg), CZNC::Get().GetHomePath());
|
||||
CFile Dir(sPath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user