diff options
Diffstat (limited to 'server/src/macrolist.cc')
-rw-r--r-- | server/src/macrolist.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/src/macrolist.cc b/server/src/macrolist.cc index 954149a..908de1e 100644 --- a/server/src/macrolist.cc +++ b/server/src/macrolist.cc @@ -42,6 +42,11 @@ MacroList::MacroList(std::string path) void MacroList::addFile(std::string file) { + if(file.substr(file.size() - 4) != ".xml") { + PRACRO_DEBUG(macrolist, "Skipping file: %s\n", file.c_str()); + return; + } + PRACRO_DEBUG(macrolist, "Adding file: %s\n", file.c_str()); MacroHeaderParser parser(file); try { |