diff options
author | Rasmus Eskola <fruitiex@gmail.com> | 2013-08-10 21:39:17 +0300 |
---|---|---|
committer | Rasmus Eskola <fruitiex@gmail.com> | 2013-08-10 21:39:17 +0300 |
commit | c4f734aa322cbe83a626e43088b5fc2cc5aef411 (patch) | |
tree | 95339a40d4a77db55a3309621cec408cbc6478ca | |
parent | 2cb6d4004b21aa8086adb0d96ac60bd6c1f7741c (diff) |
sane limits for numlines, add a few tasks to TODO
-rw-r--r-- | README.md | 9 | ||||
-rw-r--r-- | backlog.cpp | 1 |
2 files changed, 10 insertions, 0 deletions
@@ -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); |