0001-Modified-CoreBasicHandler-displayMsg-to-remove-a-pre.patch
src/core/corebasichandler.cpp | ||
---|---|---|
118 | 118 |
} |
119 | 119 | |
120 | 120 |
void CoreBasicHandler::displayMsg(Message::Type msgType, QString target, const QString &text, const QString &sender, Message::Flags flags) { |
121 |
if(!target.isEmpty() && network()->prefixes().contains(target[0])) |
|
121 |
// Since some server use the same characters for PREFIX and for CHANTYPES, |
|
122 |
// remove prefix only if the result is still a channel name. |
|
123 |
if(!target.isEmpty() && network()->prefixes().contains(target[0]) && network()->isChannelName(target.mid(1))) |
|
122 | 124 |
target = target.mid(1); |
123 | 125 | |
124 | 126 |
IrcChannel *channel = network()->ircChannel(target); |
125 |
- |