X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fircparser.cpp;fp=src%2Fcore%2Fircparser.cpp;h=9e8461f3099d2a1914046f6960f010b1b6ac4bd1;hp=f5363554443ad194e98ab4448210daa228b10eee;hb=adc18a7284e7124639fa4b354251d6b102dcf6b7;hpb=9351722d2deb2439c4251d69707230b574846272 diff --git a/src/core/ircparser.cpp b/src/core/ircparser.cpp index f5363554..9e8461f3 100644 --- a/src/core/ircparser.cpp +++ b/src/core/ircparser.cpp @@ -298,6 +298,17 @@ void IrcParser::processNetworkIncoming(NetworkDataEvent *e) decParams << net->channelDecode(channel, params.at(2)); } break; + case 451: /* You have not registered... */ + if (target.compare("CAP", Qt::CaseInsensitive) == 0) { + // :irc.server.com 451 CAP :You have not registered + // If server doesn't support capabilities, it will report this message. Turn it + // into a nicer message since it's not a real error. + defaultHandling = false; + events << new MessageEvent(Message::Server, e->network(), + tr("Capability negotiation not supported"), + QString(), QString(), Message::None, e->timestamp()); + } + break; } default: