summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Eskola <fruitiex@gmail.com>2013-08-10 21:39:17 +0300
committerRasmus Eskola <fruitiex@gmail.com>2013-08-10 21:39:17 +0300
commitc4f734aa322cbe83a626e43088b5fc2cc5aef411 (patch)
tree95339a40d4a77db55a3309621cec408cbc6478ca
parent2cb6d4004b21aa8086adb0d96ac60bd6c1f7741c (diff)
sane limits for numlines, add a few tasks to TODO
-rw-r--r--README.md9
-rw-r--r--backlog.cpp1
2 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md
index 08d3a56..d7bb66a 100644
--- a/README.md
+++ b/README.md
@@ -59,3 +59,12 @@ TODO
- Currently the module can only be loaded on a per-network basis.
- Autodetect LogPath if possible
- Optimize?
+- Flag for ignoring joins/parts
+- Server-time for timestamp, http://ircv3.org/extensions/server-time-3.2
+- Comments around FirstSpace etc (magic numbers!)
+- inChan() should be private function
+- make install rules (see kylef's plugins)
+- CDir instead of opendir(), see FileUtils.h
+- wiki page for the mod
+- see how timestamps are created in buffer playback code
+- investigate '\*' lines in XChat server window, maybe random space somewhere?
diff --git a/backlog.cpp b/backlog.cpp
index d998e64..250e6fb 100644
--- a/backlog.cpp
+++ b/backlog.cpp
@@ -92,6 +92,7 @@ void CBacklogMod::OnModCommand(const CString& sCommand) {
if(reqLines <= 0) {
reqLines = 150;
}
+ reqLines = std::max(std::min(reqLines, 1000), 1);
CString Path = LogPath.substr(); // make copy
Path.Replace("$NETWORK", Network);