diff options
author | Rasmus Eskola <fruitiex@gmail.com> | 2014-07-02 10:06:20 +0300 |
---|---|---|
committer | Rasmus Eskola <fruitiex@gmail.com> | 2014-07-02 10:06:20 +0300 |
commit | f5649c2bfbf3b8d6b7ece27d2968a93743d8d2ef (patch) | |
tree | b9043223911d4a9b8e1380f866deda38c1fb4589 | |
parent | cc36640ce0b50b556f828f720bae4a1722e6d8b5 (diff) |
case insensitive filenames, because irc is case insensitive
-rw-r--r-- | backlog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backlog.cpp b/backlog.cpp index 50d93bd..c5ced96 100644 --- a/backlog.cpp +++ b/backlog.cpp @@ -121,7 +121,7 @@ void CBacklogMod::OnModCommand(const CString& sCommand) { while ((ent = readdir (dir)) != NULL) { FilePath = DirPath + "/" + ent->d_name; //PutModule("DEBUG: " + FilePath + " " + Path); - if(FilePath.StrCmp(Path, Path.find_last_of("*")) == 0) { + if(FilePath.AsLower().StrCmp(Path.AsLower(), Path.find_last_of("*")) == 0) { FileList.push_back(FilePath); } } |