Added some functionality to the accountPopup (#117)
* Added some buttons. * Added some more functionality. * Finished adding button functionality. * Implemented @fourtf's suggestions.
This commit is contained in:
@@ -270,6 +270,8 @@ void IrcManager::messageReceived(Communi::IrcMessage *message)
|
||||
this->handleWhisperMessage(message);
|
||||
} else if (command == "USERNOTICE") {
|
||||
this->handleUserNoticeMessage(message);
|
||||
} else if (command == "MODE") {
|
||||
this->handleModeMessage(message);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -309,6 +311,18 @@ void IrcManager::handleUserNoticeMessage(Communi::IrcMessage *message)
|
||||
// do nothing
|
||||
}
|
||||
|
||||
void IrcManager::handleModeMessage(Communi::IrcMessage *message)
|
||||
{
|
||||
auto channel = channelManager.getTwitchChannel(message->parameter(0).remove(0,1));
|
||||
if(message->parameter(1) == "+o")
|
||||
{
|
||||
channel->modList.append(message->parameter(2));
|
||||
} else if(message->parameter(1) == "-o")
|
||||
{
|
||||
channel->modList.append(message->parameter(2));
|
||||
}
|
||||
}
|
||||
|
||||
bool IrcManager::isTwitchBlockedUser(QString const &username)
|
||||
{
|
||||
QMutexLocker locker(&this->twitchBlockedUsersMutex);
|
||||
|
||||
Reference in New Issue
Block a user