summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-06 16:58:19 +0200
committermadmaxoft <github@xoft.cz>2013-10-06 16:58:19 +0200
commitd8dfa8cd88d08058cf27819b647d441000528597 (patch)
treeb009e0a89a1199620eea1054cfe3475a64b18c16
parentAPIDump: Brought cItem docs up-to-date. (diff)
downloadcuberite-d8dfa8cd88d08058cf27819b647d441000528597.tar
cuberite-d8dfa8cd88d08058cf27819b647d441000528597.tar.gz
cuberite-d8dfa8cd88d08058cf27819b647d441000528597.tar.bz2
cuberite-d8dfa8cd88d08058cf27819b647d441000528597.tar.lz
cuberite-d8dfa8cd88d08058cf27819b647d441000528597.tar.xz
cuberite-d8dfa8cd88d08058cf27819b647d441000528597.tar.zst
cuberite-d8dfa8cd88d08058cf27819b647d441000528597.zip
Diffstat (limited to '')
-rw-r--r--source/PluginManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/PluginManager.cpp b/source/PluginManager.cpp
index eb347968a..a557bdc03 100644
--- a/source/PluginManager.cpp
+++ b/source/PluginManager.cpp
@@ -75,9 +75,9 @@ void cPluginManager::FindPlugins(void)
AStringList Files = GetDirectoryContents(PluginsPath.c_str());
for (AStringList::const_iterator itr = Files.begin(); itr != Files.end(); ++itr)
{
- if (!cFile::IsFolder(PluginsPath + *itr))
+ if ((*itr == ".") || (*itr == "..") || (!cFile::IsFolder(PluginsPath + *itr)))
{
- // We only want folders
+ // We only want folders, and don't want "." or ".."
continue;
}