mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Make isMod a virtual method so it can be called from the base class too
This commit is contained in:
parent
283b48f845
commit
1e7d3a2ec6
3 changed files with 6 additions and 2 deletions
|
@ -53,6 +53,10 @@ public:
|
||||||
|
|
||||||
virtual bool canSendMessage() const;
|
virtual bool canSendMessage() const;
|
||||||
virtual void sendMessage(const QString &message);
|
virtual void sendMessage(const QString &message);
|
||||||
|
virtual bool isMod() const
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
messages::LimitedQueue<messages::MessagePtr> messages;
|
messages::LimitedQueue<messages::MessagePtr> messages;
|
||||||
|
|
|
@ -90,7 +90,7 @@ void TwitchChannel::sendMessage(const QString &message)
|
||||||
singletons::IrcManager::getInstance().sendMessage(this->name, parsedMessage);
|
singletons::IrcManager::getInstance().sendMessage(this->name, parsedMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TwitchChannel::isMod()
|
bool TwitchChannel::isMod() const
|
||||||
{
|
{
|
||||||
return this->mod;
|
return this->mod;
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ public:
|
||||||
bool canSendMessage() const override;
|
bool canSendMessage() const override;
|
||||||
void sendMessage(const QString &message) override;
|
void sendMessage(const QString &message) override;
|
||||||
|
|
||||||
bool isMod();
|
bool isMod() const override;
|
||||||
void setMod(bool value);
|
void setMod(bool value);
|
||||||
bool isBroadcaster();
|
bool isBroadcaster();
|
||||||
bool hasModRights();
|
bool hasModRights();
|
||||||
|
|
Loading…
Reference in a new issue