X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Ffileutils.cpp;h=8f78745fa7b0000b15b9f3e6dc6905f3a3de82fb;hb=d4685e02b55229e0ca5068b839c87b5a80180f33;hp=f367b128c7a2b84312376ebc89658b84924e0b6b;hpb=aa75e25f27f6cad66e5869ec1109084297eac65a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/fileutils.cpp b/src/fileutils.cpp index f367b128c..8f78745fa 100644 --- a/src/fileutils.cpp +++ b/src/fileutils.cpp @@ -1,7 +1,7 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2013, 2019 Sadie Powell + * Copyright (C) 2013, 2019-2020 Sadie Powell * Copyright (C) 2013 Attila Molnar * * This file is part of InspIRCd. InspIRCd is free software: you can @@ -77,7 +77,7 @@ std::string FileSystem::ExpandPath(const std::string& base, const std::string& f return fragment; // The fragment is relative to a home directory, expand that. - if (fragment.compare(0, 2, "~/", 2)) + if (!fragment.compare(0, 2, "~/", 2)) { const char* homedir = getenv("HOME"); if (homedir && *homedir)