diff --git a/src/controllers/commands/CommandController.cpp b/src/controllers/commands/CommandController.cpp index e8f4f6b35..51911aaeb 100644 --- a/src/controllers/commands/CommandController.cpp +++ b/src/controllers/commands/CommandController.cpp @@ -12,7 +12,6 @@ #include "controllers/commands/CommandModel.hpp" #include "controllers/plugins/PluginController.hpp" #include "controllers/userdata/UserDataController.hpp" -#include "lua.h" #include "messages/Message.hpp" #include "messages/MessageBuilder.hpp" #include "messages/MessageElement.hpp" @@ -52,6 +51,10 @@ #include #include +#ifdef CHATTERINO_HAVE_PLUGINS +# include "lua.h" +#endif + namespace { using namespace chatterino; diff --git a/src/widgets/settingspages/AboutPage.cpp b/src/widgets/settingspages/AboutPage.cpp index 631152487..a9509674c 100644 --- a/src/widgets/settingspages/AboutPage.cpp +++ b/src/widgets/settingspages/AboutPage.cpp @@ -113,8 +113,10 @@ AboutPage::AboutPage() addLicense(form.getElement(), "miniaudio", "https://github.com/mackron/miniaudio", ":/licenses/miniaudio.txt"); +#ifdef CHATTERINO_HAVE_PLUGINS addLicense(form.getElement(), "lua", "https://lua.org", ":/licenses/lua.txt"); +#endif } // Attributions