diff options
author | Rasmus Eskola <fruitiex@gmail.com> | 2013-08-10 20:06:12 +0300 |
---|---|---|
committer | Rasmus Eskola <fruitiex@gmail.com> | 2013-08-10 20:06:12 +0300 |
commit | 050f1d65acb1e132a13f90556bcbcb36c8178135 (patch) | |
tree | dac0abde1799181353ed6338c7792fd813501a42 | |
parent | 68bef9fd0fec08263c407356f08a9fc11b1a4ee8 (diff) |
don't wipe logpath variable when running LogPath without arguments
-rw-r--r-- | backlog.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/backlog.cpp b/backlog.cpp index af1fcc5..b6cec70 100644 --- a/backlog.cpp +++ b/backlog.cpp @@ -66,14 +66,13 @@ void CBacklogMod::OnModCommand(const CString& sCommand) { return; } else if (sCommand.Token(0).CaseCmp("logpath") == 0) { - LogPath = sCommand.Token(1, true); - - if(LogPath.empty()) { + if(sCommand.Token(1, true).empty()) { PutModule("Usage: LogPath <path> (use keywords $USER, $NETWORK, $WINDOW)"); PutModule("Current LogPath is set to: " + GetNV("LogPath")); return; } + LogPath = sCommand.Token(1, true); SetNV("LogPath", LogPath); PutModule("LogPath set to: " + LogPath); return; |