chore: remove Singleton & replace getIApp with getApp (#5514)
This commit is contained in:
@@ -104,7 +104,7 @@ QString sendWarn(const CommandContext &ctx)
|
||||
|
||||
assert(!actions.value().empty());
|
||||
|
||||
auto currentUser = getIApp()->getAccounts()->twitch.getCurrent();
|
||||
auto currentUser = getApp()->getAccounts()->twitch.getCurrent();
|
||||
if (currentUser->isAnon())
|
||||
{
|
||||
ctx.channel->addSystemMessage("You must be logged in to warn someone!");
|
||||
|
||||
Reference in New Issue
Block a user