-rw-r--r-- | noncore/net/opieirc/ircoutput.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/net/opieirc/ircoutput.cpp b/noncore/net/opieirc/ircoutput.cpp index d2c730f..26d90cb 100644 --- a/noncore/net/opieirc/ircoutput.cpp +++ b/noncore/net/opieirc/ircoutput.cpp @@ -1,31 +1,31 @@ #include <qtopia/stringutil.h> #include "ircoutput.h" IRCOutputEscapeSecuences IRCOutput::m_escapeSecuences[] = { - { '', "<b>", "</b>"}, - { '', "<u>", "</u>"}, + { '\002', "<b>", "</b>"}, + { '\037', "<u>", "</u>"}, { 0, 0, 0}, }; IRCOutput::IRCOutput(IRCOutputType type, QString message) { m_type = type; - /* Filter color, bold and underline escape sequences, since they aren't implemented yet */ - m_message = message.replace(QRegExp("[1-9]*,*[1-9]*"), ""); + /* Filter color escape sequences, since they aren't implemented yet */ + m_message = message.replace(QRegExp("\003[1-9]*,*[1-9]*"), ""); } IRCOutputType IRCOutput::type() { return m_type; } QString IRCOutput::message() { return m_message; } void IRCOutput::setType(IRCOutputType type) { m_type = type; } void IRCOutput::setMessage(const QString &message) { m_message = message; |