From ef22c446df4cb76145f9e79a3ffe6f044131ea52 Mon Sep 17 00:00:00 2001 From: silverleo Date: Fri, 27 Feb 2009 15:53:38 +0000 Subject: [PATCH] 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 --- modules/shell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/shell.cpp b/modules/shell.cpp index 24751d28..374cbf92 100644 --- a/modules/shell.cpp +++ b/modules/shell.cpp @@ -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);