summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircsession.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/ircsession.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/ircsession.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/opieirc/ircsession.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/noncore/net/opieirc/ircsession.cpp b/noncore/net/opieirc/ircsession.cpp
index 89df68c..122a943 100644
--- a/noncore/net/opieirc/ircsession.cpp
+++ b/noncore/net/opieirc/ircsession.cpp
@@ -36,6 +36,14 @@ void IRCSession::sendMessage(IRCChannel *channel, QString message) {
36 m_connection->sendLine("PRIVMSG " + channel->channelname() + " :" + message); 36 m_connection->sendLine("PRIVMSG " + channel->channelname() + " :" + message);
37} 37}
38 38
39void IRCSession::sendAction(IRCChannel *channel, QString message) {
40 m_connection->sendLine("PRIVMSG " + channel->channelname() + " :\001ACTION " + message + "\001");
41}
42
43void IRCSession::sendAction(IRCPerson *person, QString message) {
44 m_connection->sendLine("PRIVMSG " + person->nick() + " :\001ACTION " + message + "\001");
45}
46
39bool IRCSession::isSessionActive() { 47bool IRCSession::isSessionActive() {
40 return m_connection->isConnected(); 48 return m_connection->isConnected();
41} 49}