requested changes

This commit is contained in:
pphop 2019-04-14 19:57:41 +05:00
parent 320d74b287
commit e4d3e6de7f
2 changed files with 3 additions and 2 deletions

View file

@ -12,7 +12,7 @@ class Paths;
class IgnoreModel;
enum ShowIgnoredUsersMessages { Never, IfModerator, IfBroadcaster };
enum class ShowIgnoredUsersMessages { Never, IfModerator, IfBroadcaster };
class IgnoreController final : public Singleton
{

View file

@ -80,7 +80,8 @@ bool TwitchMessageBuilder::isIgnored() const
{
if (sourceUserID == user.id)
{
switch (getSettings()->showIgnoredUsersMessages)
switch (static_cast<ShowIgnoredUsersMessages>(
getSettings()->showIgnoredUsersMessages.getValue()))
{
case ShowIgnoredUsersMessages::IfModerator:
if (this->channel->isMod() ||