From 1b7e56b581accd385d8f1b1f5ee607b4659c822e Mon Sep 17 00:00:00 2001 From: eli mackenzie Date: Sun, 18 Apr 2010 15:55:02 -0400 Subject: [PATCH] add hexdump to raw log --- src/irc/server.cpp | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/src/irc/server.cpp b/src/irc/server.cpp index dde396d..c3dfa59 100644 --- a/src/irc/server.cpp +++ b/src/irc/server.cpp @@ -944,6 +944,20 @@ void Server::processIncomingData() } } +static QString qstrToHex( const QByteArray in) +{ + int l = in.length(), i=0; + QString out; + for (;iappendRaw(">> " + QString(first).remove(QChar(0xFDD0)).remove(QChar(0xFDD1)).replace('&',"&").replace('<',"<").replace('>',">").replace(QRegExp("\\s"), " ")); + m_rawLog->appendRaw(qstrToHex(first)); + } #ifdef HAVE_QCA2 QByteArray cKey = getKeyForRecipient(channelKey); -- 1.6.6.1