From d8accaeed5f95340e8d293d6d5d1bb136c57fe35 Mon Sep 17 00:00:00 2001 From: wazlaf Date: Sat, 21 Sep 2002 07:11:10 +0000 Subject: CTCP action now work via /me, HTML escaping now also works for text sent by yourself --- (limited to 'noncore/net/opieirc/ircservertab.cpp') 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) { } else { tab->appendText("Unknown channel format!
"); } + } else if (command == "ME") { + QString text = IRCOutput::toHTML(line.right(line.length()-4)); + if (text.length() > 0) { + if (tab->isA("IRCChannelTab")) { + tab->appendText("*" + m_server.nick() + " " + text + "
"); + m_session->sendAction(((IRCChannelTab *)tab)->channel(), text); + } else if (tab->isA("IRCQueryTab")) { + } else { + tab->appendText("Invalid tab for this command
"); + } + } } else { tab->appendText("Unknown command
"); } -- cgit v0.9.0.2