From e4d3e6de7f28cf14efd57c858f411864e3305b45 Mon Sep 17 00:00:00 2001 From: pphop <1um6okote@gmail.com> Date: Sun, 14 Apr 2019 19:57:41 +0500 Subject: [PATCH] requested changes --- src/controllers/ignores/IgnoreController.hpp | 2 +- src/providers/twitch/TwitchMessageBuilder.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/controllers/ignores/IgnoreController.hpp b/src/controllers/ignores/IgnoreController.hpp index 59efc4a47..1279f4a88 100644 --- a/src/controllers/ignores/IgnoreController.hpp +++ b/src/controllers/ignores/IgnoreController.hpp @@ -12,7 +12,7 @@ class Paths; class IgnoreModel; -enum ShowIgnoredUsersMessages { Never, IfModerator, IfBroadcaster }; +enum class ShowIgnoredUsersMessages { Never, IfModerator, IfBroadcaster }; class IgnoreController final : public Singleton { diff --git a/src/providers/twitch/TwitchMessageBuilder.cpp b/src/providers/twitch/TwitchMessageBuilder.cpp index aad1228bd..cd1d78cb4 100644 --- a/src/providers/twitch/TwitchMessageBuilder.cpp +++ b/src/providers/twitch/TwitchMessageBuilder.cpp @@ -80,7 +80,8 @@ bool TwitchMessageBuilder::isIgnored() const { if (sourceUserID == user.id) { - switch (getSettings()->showIgnoredUsersMessages) + switch (static_cast( + getSettings()->showIgnoredUsersMessages.getValue())) { case ShowIgnoredUsersMessages::IfModerator: if (this->channel->isMod() ||