-rw-r--r-- | noncore/net/opieirc/ircmessageparser.cpp | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/noncore/net/opieirc/ircmessageparser.cpp b/noncore/net/opieirc/ircmessageparser.cpp index fde156c..cfad2c1 100644 --- a/noncore/net/opieirc/ircmessageparser.cpp +++ b/noncore/net/opieirc/ircmessageparser.cpp | |||
@@ -73,6 +73,6 @@ IRCNumericalMessageParserStruct IRCMessageParser::numericalParserProcTable[] = { | |||
73 | { 412, "%1", "1", 0 }, // ERR_NOTEXTTOSEND | 73 | { 412, "%1", "1", 0 }, // ERR_NOTEXTTOSEND |
74 | { 421, QT_TR_NOOP("Unknown command: %1"), "1", 0 }, // ERR_NOMOTD | 74 | { 421, QT_TR_NOOP("Unknown command: %1"), "1", 0 }, // ERR_ERR_UNKNOWNCOMMAND |
75 | { 422, QT_TR_NOOP("You're not on channel %1"), "1", 0}, // ERR_NOTONCHANNEL | ||
76 | { 422, "%1", "1", 0 }, // ERR_NOMOTD | 75 | { 422, "%1", "1", 0 }, // ERR_NOMOTD |
77 | { 433, QT_TR_NOOP("Can't change nick to %1: %2"), "1,2", FUNC(parseNumericalNicknameInUse) }, // ERR_NICKNAMEINUSE | 76 | { 433, QT_TR_NOOP("Can't change nick to %1: %2"), "1,2", FUNC(parseNumericalNicknameInUse) }, // ERR_NICKNAMEINUSE |
77 | { 442, QT_TR_NOOP("You're not on channel %1"), "1", 0}, // ERR_NOTONCHANNEL | ||
78 | { 477, "%1", "1", 0 }, // ERR_NOCHANMODES || ERR_NEEDREGGEDNICK | 78 | { 477, "%1", "1", 0 }, // ERR_NOCHANMODES || ERR_NEEDREGGEDNICK |
@@ -138,2 +138,6 @@ void IRCMessageParser::parseNumericalServerName(IRCMessage *message) { | |||
138 | emit outputReady(IRCOutput(OUTPUT_TITLE, tr("Connected to")+" <b>" + message->prefix() + "</b>")); | 138 | emit outputReady(IRCOutput(OUTPUT_TITLE, tr("Connected to")+" <b>" + message->prefix() + "</b>")); |
139 | /* Register EFFECTIVE nickname, some networks (as irc-hispano) uses nick:password | ||
140 | * for authentication and the parser gets confused */ | ||
141 | m_session->m_server->setNick(message->param(0)); | ||
142 | |||
139 | } | 143 | } |
@@ -251,3 +255,5 @@ void IRCMessageParser::parseLiteralPrivMsg(IRCMessage *message) { | |||
251 | emit outputReady(output); | 255 | emit outputReady(output); |
252 | } else if (message->param(0).at(0) == '#' || message->param(0).at(0) == '+') { | 256 | } |
257 | else | ||
258 | if (message->param(0).at(0) == '#' || message->param(0).at(0) == '+') { | ||
253 | /* IRC Channel message detected, verify sender, channel and display it */ | 259 | /* IRC Channel message detected, verify sender, channel and display it */ |
@@ -262,10 +268,12 @@ void IRCMessageParser::parseLiteralPrivMsg(IRCMessage *message) { | |||
262 | emit outputReady(output); | 268 | emit outputReady(output); |
263 | } else { | 269 | } |
270 | else { | ||
264 | emit outputReady(IRCOutput(OUTPUT_ERROR, tr("Channel message with unknown sender"))); | 271 | emit outputReady(IRCOutput(OUTPUT_ERROR, tr("Channel message with unknown sender"))); |
265 | } | 272 | } |
266 | } else { | 273 | } |
274 | else { | ||
267 | emit outputReady(IRCOutput(OUTPUT_ERROR, tr("Channel message with unknown channel %1").arg(message->param(0).lower()) )); | 275 | emit outputReady(IRCOutput(OUTPUT_ERROR, tr("Channel message with unknown channel %1").arg(message->param(0).lower()) )); |
268 | } | 276 | } |
269 | } else { | 277 | } |
270 | emit outputReady(IRCOutput(OUTPUT_ERROR, tr("Received PRIVMSG of unknown type"))); | 278 | else {emit outputReady(IRCOutput(OUTPUT_ERROR, tr("Received PRIVMSG of unknown type"))); |
271 | } | 279 | } |