Merge pull request #925 from apa420/apa-automod-implementation

Automod implementation
This commit is contained in:
pajlada
2019-01-22 22:45:34 +01:00
committed by GitHub
19 changed files with 524 additions and 80 deletions
+12
View File
@@ -2,6 +2,7 @@
#include "Application.hpp"
#include "common/Common.hpp"
#include "controllers/accounts/AccountController.hpp"
#include "debug/Benchmark.hpp"
#include "debug/Log.hpp"
#include "messages/Emote.hpp"
@@ -1671,6 +1672,17 @@ void ChannelView::handleLinkClick(QMouseEvent *event, const Link &link,
}
break;
case Link::AutoModAllow:
{
getApp()->accounts->twitch.getCurrent()->autoModAllow(link.value);
}
break;
case Link::AutoModDeny:
{
getApp()->accounts->twitch.getCurrent()->autoModDeny(link.value);
}
default:;
}
}