diff options
Diffstat (limited to 'packages/opie-irc/files')
| -rw-r--r-- | packages/opie-irc/files/.mtn2git_empty | 0 | ||||
| -rw-r--r-- | packages/opie-irc/files/utf8-topic.patch | 18 | ||||
| -rw-r--r-- | packages/opie-irc/files/utf8.patch | 23 |
3 files changed, 41 insertions, 0 deletions
diff --git a/packages/opie-irc/files/.mtn2git_empty b/packages/opie-irc/files/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/opie-irc/files/.mtn2git_empty diff --git a/packages/opie-irc/files/utf8-topic.patch b/packages/opie-irc/files/utf8-topic.patch new file mode 100644 index 0000000000..d8d9a52ca9 --- /dev/null +++ b/packages/opie-irc/files/utf8-topic.patch @@ -0,0 +1,18 @@ +diff --git a/ircmessageparser.cpp b/ircmessageparser.cpp +index c449a65..ae47f69 100644 +--- a/ircmessageparser.cpp ++++ b/ircmessageparser.cpp +@@ -667,11 +667,11 @@ void IRCMessageParser::parseNumericalNoSuchNick(IRCMessage *) { + void IRCMessageParser::parseNumericalTopic(IRCMessage *message) { + IRCChannel *channel = m_session->getChannel(message->param(1).lower()); + if (channel) { +- IRCOutput output(OUTPUT_TOPIC, tr("Topic for channel " + channel->channelname() + " is \"" + message->param(2) + "\"")); ++ IRCOutput output(OUTPUT_TOPIC, tr("Topic for channel ") + channel->channelname() + tr(" is \"") + message->param(2) + "\""); + output.addParam(channel); + emit outputReady(output); + } else { +- IRCOutput output(OUTPUT_TOPIC, tr("Topic for channel " + message->param(1) + " is \"" + message->param(2) + "\"")); ++ IRCOutput output(OUTPUT_TOPIC, tr("Topic for channel ") + message->param(1) + tr(" is \"") + message->param(2) + "\""); + output.addParam(0); + emit outputReady(output); + } diff --git a/packages/opie-irc/files/utf8.patch b/packages/opie-irc/files/utf8.patch new file mode 100644 index 0000000000..cc562838a2 --- /dev/null +++ b/packages/opie-irc/files/utf8.patch @@ -0,0 +1,23 @@ +diff --git a/ircconnection.cpp b/ircconnection.cpp +index 88e63f7..fb7e168 100644 +--- a/ircconnection.cpp ++++ b/ircconnection.cpp +@@ -29,7 +29,8 @@ void IRCConnection::sendLine(QString line) { + while((line.right(1) == "\n") || (line.right(1) == "\r")) + line = line.left(line.length() - 1); + line.append("\r\n"); +- m_socket->writeBlock(line, line.length()); ++ QCString uline = line.utf8(); ++ m_socket->writeBlock(uline, uline.length()); + } + + void IRCConnection::sendCTCPReply(const QString &nickname, const QString &type, const QString &args) { +@@ -77,7 +78,7 @@ void IRCConnection::login() { + /* Called when data arrives on the socket */ + void IRCConnection::dataReady() { + while(m_socket->canReadLine()) { +- IRCMessage message(m_socket->readLine()); ++ IRCMessage message(QString::fromUtf8(m_socket->readLine())); + if (!m_loggedIn && message.isNumerical() && message.commandNumber() == 1) { + /* Now autojoin all channels specified inside the server profile */ + QStringList channels = QStringList::split(QChar(','), m_server->channels()); |
