-rw-r--r-- | noncore/net/opieirc/ircmessageparser.cpp | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/noncore/net/opieirc/ircmessageparser.cpp b/noncore/net/opieirc/ircmessageparser.cpp index d1b70a5..2b77414 100644 --- a/noncore/net/opieirc/ircmessageparser.cpp +++ b/noncore/net/opieirc/ircmessageparser.cpp | |||
@@ -37,2 +37,6 @@ IRCNumericalMessageParserStruct IRCMessageParser::numericalParserProcTable[] = { | |||
37 | { 251, FUNC(parseNumericalStats) }, // RPL_LUSERCLIENT | 37 | { 251, FUNC(parseNumericalStats) }, // RPL_LUSERCLIENT |
38 | { 252, FUNC(parseNumericalStats) }, // RPL_LUSEROP | ||
39 | { 265, FUNC(parseNumericalStats) }, // RPL_LOCALUSERS | ||
40 | { 266, FUNC(parseNumericalStats) }, // RPL_GLOBALUSERS | ||
41 | { 250, FUNC(parseNumericalStats) }, // RPL_STATSCONN | ||
38 | { 254, FUNC(nullFunc)}, // RPL_LUSERCHANNELS | 42 | { 254, FUNC(nullFunc)}, // RPL_LUSERCHANNELS |
@@ -102,3 +106,3 @@ void IRCMessageParser::parseLiteralNotice(IRCMessage *message) { | |||
102 | void IRCMessageParser::parseLiteralJoin(IRCMessage *message) { | 106 | void IRCMessageParser::parseLiteralJoin(IRCMessage *message) { |
103 | QString channelName = message->param(0); | 107 | QString channelName = message->param(0).lower(); |
104 | IRCPerson mask(message->prefix()); | 108 | IRCPerson mask(message->prefix()); |
@@ -140,3 +144,3 @@ void IRCMessageParser::parseLiteralJoin(IRCMessage *message) { | |||
140 | void IRCMessageParser::parseLiteralPart(IRCMessage *message) { | 144 | void IRCMessageParser::parseLiteralPart(IRCMessage *message) { |
141 | QString channelName = message->param(0); | 145 | QString channelName = message->param(0).lower(); |
142 | IRCChannel *channel = m_session->getChannel(channelName); | 146 | IRCChannel *channel = m_session->getChannel(channelName); |
@@ -183,3 +187,3 @@ void IRCMessageParser::parseLiteralPrivMsg(IRCMessage *message) { | |||
183 | /* IRC Channel message detected, verify sender, channel and display it */ | 187 | /* IRC Channel message detected, verify sender, channel and display it */ |
184 | IRCChannel *channel = m_session->getChannel(message->param(0)); | 188 | IRCChannel *channel = m_session->getChannel(message->param(0).lower()); |
185 | if (channel) { | 189 | if (channel) { |
@@ -196,3 +200,3 @@ void IRCMessageParser::parseLiteralPrivMsg(IRCMessage *message) { | |||
196 | } else { | 200 | } else { |
197 | emit outputReady(IRCOutput(OUTPUT_ERROR, tr("Channel message with unknown channel ") + message->param(0))); | 201 | emit outputReady(IRCOutput(OUTPUT_ERROR, tr("Channel message with unknown channel ") + message->param(0).lower())); |
198 | } | 202 | } |
@@ -249,3 +253,3 @@ void IRCMessageParser::parseLiteralTopic(IRCMessage *message) { | |||
249 | IRCPerson mask(message->prefix()); | 253 | IRCPerson mask(message->prefix()); |
250 | IRCChannel *channel = m_session->getChannel(message->param(0)); | 254 | IRCChannel *channel = m_session->getChannel(message->param(0).lower()); |
251 | if (channel) { | 255 | if (channel) { |
@@ -279,3 +283,3 @@ void IRCMessageParser::parseCTCPAction(IRCMessage *message) { | |||
279 | if (dest.startsWith("#")) { | 283 | if (dest.startsWith("#")) { |
280 | IRCChannel *channel = m_session->getChannel(dest); | 284 | IRCChannel *channel = m_session->getChannel(dest.lower()); |
281 | if (channel) { | 285 | if (channel) { |
@@ -314,3 +318,3 @@ void IRCMessageParser::parseLiteralMode(IRCMessage *message) { | |||
314 | if (message->param(0).startsWith("#")) { | 318 | if (message->param(0).startsWith("#")) { |
315 | IRCChannel *channel = m_session->getChannel(message->param(0)); | 319 | IRCChannel *channel = m_session->getChannel(message->param(0).lower()); |
316 | if (channel) { | 320 | if (channel) { |
@@ -385,3 +389,3 @@ void IRCMessageParser::parseLiteralKick(IRCMessage *message) { | |||
385 | IRCPerson mask(message->prefix()); | 389 | IRCPerson mask(message->prefix()); |
386 | IRCChannel *channel = m_session->getChannel(message->param(0)); | 390 | IRCChannel *channel = m_session->getChannel(message->param(0).lower()); |
387 | if (channel) { | 391 | if (channel) { |
@@ -436,3 +440,3 @@ void IRCMessageParser::parseNumericalNames(IRCMessage *message) { | |||
436 | /* Name list sent when joining a channel */ | 440 | /* Name list sent when joining a channel */ |
437 | IRCChannel *channel = m_session->getChannel(message->param(2)); | 441 | IRCChannel *channel = m_session->getChannel(message->param(2).lower()); |
438 | if (channel != 0) { | 442 | if (channel != 0) { |
@@ -480,3 +484,3 @@ void IRCMessageParser::parseNumericalEndOfNames(IRCMessage *message) { | |||
480 | /* Done syncing to channel */ | 484 | /* Done syncing to channel */ |
481 | IRCChannel *channel = m_session->getChannel(message->param(1)); | 485 | IRCChannel *channel = m_session->getChannel(message->param(1).lower()); |
482 | if (channel) { | 486 | if (channel) { |
@@ -503,3 +507,3 @@ void IRCMessageParser::parseNumericalNoSuchNick(IRCMessage *) { | |||
503 | void IRCMessageParser::parseNumericalTopic(IRCMessage *message) { | 507 | void IRCMessageParser::parseNumericalTopic(IRCMessage *message) { |
504 | IRCChannel *channel = m_session->getChannel(message->param(1)); | 508 | IRCChannel *channel = m_session->getChannel(message->param(1).lower()); |
505 | if (channel) { | 509 | if (channel) { |