fixed /r and tab text alignment
This commit is contained in:
@@ -166,6 +166,8 @@ void IrcMessageHandler::handleWhisperMessage(Communi::IrcMessage *message)
|
||||
app->twitch.server->mentionsChannel->addMessage(_message);
|
||||
}
|
||||
|
||||
app->twitch.server->lastUserThatWhisperedMe.set(builder.userName);
|
||||
|
||||
c->addMessage(_message);
|
||||
|
||||
if (app->settings->inlineWhispers) {
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "singletons/emotemanager.hpp"
|
||||
#include "singletons/ircmanager.hpp"
|
||||
#include "util/concurrentmap.hpp"
|
||||
#include "util/mutexvalue.h"
|
||||
|
||||
#include <pajlada/signals/signalholder.hpp>
|
||||
|
||||
@@ -78,6 +79,7 @@ public:
|
||||
pajlada::Signals::NoArgSignal roomModesChanged;
|
||||
|
||||
QString roomID;
|
||||
|
||||
RoomModes getRoomModes();
|
||||
void setRoomModes(const RoomModes &roomModes);
|
||||
|
||||
|
||||
@@ -197,6 +197,20 @@ std::shared_ptr<Channel> TwitchServer::getChannelOrEmptyByID(const QString &chan
|
||||
return Channel::getEmpty();
|
||||
}
|
||||
|
||||
// QString TwitchServer::getLastWhisperedPerson() const
|
||||
//{
|
||||
// std::lock_guard<std::mutex> guard(this->lastWhisperedPersonMutex);
|
||||
|
||||
// return this->lastWhisperedPerson;
|
||||
//}
|
||||
|
||||
// void TwitchServer::setLastWhisperedPerson(const QString &person)
|
||||
//{
|
||||
// std::lock_guard<std::mutex> guard(this->lastWhisperedPersonMutex);
|
||||
|
||||
// this->lastWhisperedPerson = person;
|
||||
//}
|
||||
|
||||
QString TwitchServer::cleanChannelName(const QString &dirtyChannelName)
|
||||
{
|
||||
return dirtyChannelName.toLower();
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "providers/irc/abstractircserver.hpp"
|
||||
#include "providers/twitch/twitchaccount.hpp"
|
||||
#include "providers/twitch/twitchchannel.hpp"
|
||||
#include "util/mutexvalue.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
@@ -22,6 +23,11 @@ public:
|
||||
|
||||
std::shared_ptr<Channel> getChannelOrEmptyByID(const QString &channelID);
|
||||
|
||||
util::MutexValue<QString> lastUserThatWhisperedMe;
|
||||
|
||||
// QString getLastWhisperedPerson() const;
|
||||
// void setLastWhisperedPerson(const QString &person);
|
||||
|
||||
const ChannelPtr whispersChannel;
|
||||
const ChannelPtr mentionsChannel;
|
||||
IndirectChannel watchingChannel;
|
||||
@@ -38,6 +44,10 @@ protected:
|
||||
std::shared_ptr<Channel> getCustomChannel(const QString &channelname) override;
|
||||
|
||||
QString cleanChannelName(const QString &dirtyChannelName) override;
|
||||
|
||||
private:
|
||||
// mutable std::mutex lastWhisperedPersonMutex;
|
||||
// QString lastWhisperedPerson;
|
||||
};
|
||||
|
||||
} // namespace twitch
|
||||
|
||||
Reference in New Issue
Block a user