summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Eskola <fruitiex@gmail.com>2013-08-10 00:47:16 +0300
committerRasmus Eskola <fruitiex@gmail.com>2013-08-10 00:47:16 +0300
commit4f4262ce78ae05b870d2c525fc6f2f873a6e1b66 (patch)
treebfaf5d062cc80ce98a4f94dcb064022004b89022
parent9a08449082854572dc39fe26a559fbe22e6cda3a (diff)
tell user when setting logpath
-rw-r--r--backlog.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/backlog.cpp b/backlog.cpp
index e5b3849..9145271 100644
--- a/backlog.cpp
+++ b/backlog.cpp
@@ -33,7 +33,6 @@ public:
virtual bool OnLoad(const CString& sArgs, CString& sMessage);
virtual ~CBacklogMod();
virtual void OnModCommand(const CString& sCommand);
- virtual void SetLogPath(const CString& Path);
private:
CString LogPath;
@@ -51,6 +50,7 @@ bool CBacklogMod::OnLoad(const CString& sArgs, CString& sMessage) {
}
} else {
SetNV("LogPath", LogPath);
+ PutModule("LogPath set to: " + LogPath);
}
return true;
}
@@ -66,9 +66,9 @@ void CBacklogMod::OnModCommand(const CString& sCommand) {
return;
}
else if (sCommand.Token(0).CaseCmp("logpath") == 0) {
- CString Args = sCommand.Token(1, true);
- SetNV("LogPath", Args);
- PutModule("LogPath set to: " + Args);
+ LogPath = sCommand.Token(1, true);
+ SetNV("LogPath", LogPath);
+ PutModule("LogPath set to: " + LogPath);
return;
}
@@ -90,10 +90,6 @@ void CBacklogMod::OnModCommand(const CString& sCommand) {
LogFile.Close();
}
-void CBacklogMod::SetLogPath(const CString& Path) {
- SetNV("LogPath", LogPath);
-}
-
template<> void TModInfo<CBacklogMod>(CModInfo& Info) {
Info.AddType(CModInfo::NetworkModule);
Info.AddType(CModInfo::GlobalModule);