From 955dfd805df45f63aba037bcb506e1071afd54ef Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 18 Apr 2008 18:25:56 +0000 Subject: Apply patches to remove 200-odd dll limit on windows, made by GreenReaper, lots of thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9533 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/command_parse.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/command_parse.cpp') diff --git a/src/command_parse.cpp b/src/command_parse.cpp index fff8653b3..dab770312 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -559,7 +559,7 @@ void CommandParser::SetupCommandTable(User* user) if (library) { dirent* entry = NULL; - while ((entry = readdir(library))) + while (0 != (entry = readdir(library))) { if (match(entry->d_name, "cmd_*.so")) { @@ -663,3 +663,4 @@ int CommandParser::TranslateUIDs(TranslateType to, const std::string &source, st return translations; } + -- cgit v1.2.3