summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Eskola <fruitiex@gmail.com>2013-08-10 21:42:16 +0300
committerRasmus Eskola <fruitiex@gmail.com>2013-08-10 21:42:16 +0300
commit86f1bd6ead60f1b4a3e2bd3bbc38282d7451514c (patch)
tree5e4eff5fafad1e8c9850e69cab7001f430320ece
parentc4f734aa322cbe83a626e43088b5fc2cc5aef411 (diff)
rename LogPath member variable to m_sLogPath
-rw-r--r--backlog.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/backlog.cpp b/backlog.cpp
index 250e6fb..d6cd492 100644
--- a/backlog.cpp
+++ b/backlog.cpp
@@ -36,21 +36,21 @@ public:
bool inChan(const CString& Chan);
private:
- CString LogPath;
+ CString m_sLogPath;
};
bool CBacklogMod::OnLoad(const CString& sArgs, CString& sMessage) {
- LogPath = sArgs;
+ m_sLogPath = sArgs;
- if(LogPath.empty()) {
- LogPath = GetNV("LogPath");
- if(LogPath.empty()) {
+ if(m_sLogPath.empty()) {
+ m_sLogPath = GetNV("LogPath");
+ if(m_sLogPath.empty()) {
// TODO: guess logpath?
PutModule("LogPath is empty, set it with the LogPath command (help for more info)");
}
} else {
- SetNV("LogPath", LogPath);
- PutModule("LogPath set to: " + LogPath);
+ SetNV("LogPath", m_sLogPath);
+ PutModule("LogPath set to: " + m_sLogPath);
}
return true;
}
@@ -76,9 +76,9 @@ void CBacklogMod::OnModCommand(const CString& sCommand) {
return;
}
- LogPath = sCommand.Token(1, true);
- SetNV("LogPath", LogPath);
- PutModule("LogPath set to: " + LogPath);
+ m_sLogPath = sCommand.Token(1, true);
+ SetNV("LogPath", m_sLogPath);
+ PutModule("LogPath set to: " + m_sLogPath);
return;
}
@@ -94,7 +94,7 @@ void CBacklogMod::OnModCommand(const CString& sCommand) {
}
reqLines = std::max(std::min(reqLines, 1000), 1);
- CString Path = LogPath.substr(); // make copy
+ CString Path = m_sLogPath.substr(); // make copy
Path.Replace("$NETWORK", Network);
Path.Replace("$WINDOW", Channel);
Path.Replace("$USER", User);