diff --git a/src/channel.hpp b/src/channel.hpp index 51aa307c2..ac06a2a04 100644 --- a/src/channel.hpp +++ b/src/channel.hpp @@ -53,6 +53,10 @@ public: virtual bool canSendMessage() const; virtual void sendMessage(const QString &message); + virtual bool isMod() const + { + return false; + } private: messages::LimitedQueue messages; diff --git a/src/twitch/twitchchannel.cpp b/src/twitch/twitchchannel.cpp index b5e36ac59..038978594 100644 --- a/src/twitch/twitchchannel.cpp +++ b/src/twitch/twitchchannel.cpp @@ -90,7 +90,7 @@ void TwitchChannel::sendMessage(const QString &message) singletons::IrcManager::getInstance().sendMessage(this->name, parsedMessage); } -bool TwitchChannel::isMod() +bool TwitchChannel::isMod() const { return this->mod; } diff --git a/src/twitch/twitchchannel.hpp b/src/twitch/twitchchannel.hpp index 0aae27b37..2c5f49058 100644 --- a/src/twitch/twitchchannel.hpp +++ b/src/twitch/twitchchannel.hpp @@ -22,7 +22,7 @@ public: bool canSendMessage() const override; void sendMessage(const QString &message) override; - bool isMod(); + bool isMod() const override; void setMod(bool value); bool isBroadcaster(); bool hasModRights();