summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircservertab.cpp
authorwazlaf <wazlaf>2002-09-21 07:11:10 (UTC)
committer wazlaf <wazlaf>2002-09-21 07:11:10 (UTC)
commitd8accaeed5f95340e8d293d6d5d1bb136c57fe35 (patch) (unidiff)
tree8452081a1b36ab0db6b34a5a738ff7b64be641e9 /noncore/net/opieirc/ircservertab.cpp
parent2f560ac908935bd4bc4a6b8852d27676100510bb (diff)
downloadopie-d8accaeed5f95340e8d293d6d5d1bb136c57fe35.zip
opie-d8accaeed5f95340e8d293d6d5d1bb136c57fe35.tar.gz
opie-d8accaeed5f95340e8d293d6d5d1bb136c57fe35.tar.bz2
CTCP action now work via /me, HTML escaping now also works for text sent by yourself
Diffstat (limited to 'noncore/net/opieirc/ircservertab.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/ircservertab.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/noncore/net/opieirc/ircservertab.cpp b/noncore/net/opieirc/ircservertab.cpp
index 2ad56a8..503a758 100644
--- a/noncore/net/opieirc/ircservertab.cpp
+++ b/noncore/net/opieirc/ircservertab.cpp
@@ -59,6 +59,17 @@ void IRCServerTab::executeCommand(IRCTab *tab, QString line) {
59 } else { 59 } else {
60 tab->appendText("<font color=\"#ff0000\">Unknown channel format!</font><br>"); 60 tab->appendText("<font color=\"#ff0000\">Unknown channel format!</font><br>");
61 } 61 }
62 } else if (command == "ME") {
63 QString text = IRCOutput::toHTML(line.right(line.length()-4));
64 if (text.length() > 0) {
65 if (tab->isA("IRCChannelTab")) {
66 tab->appendText("<font color=\"#cc0000\">*" + m_server.nick() + " " + text + "</font><br>");
67 m_session->sendAction(((IRCChannelTab *)tab)->channel(), text);
68 } else if (tab->isA("IRCQueryTab")) {
69 } else {
70 tab->appendText("<font color=\"#ff0000\">Invalid tab for this command</font><br>");
71 }
72 }
62 } else { 73 } else {
63 tab->appendText("<font color=\"#ff0000\">Unknown command</font><br>"); 74 tab->appendText("<font color=\"#ff0000\">Unknown command</font><br>");
64 } 75 }