Diffstat (limited to 'noncore/net/opieirc/ircsession.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircsession.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/noncore/net/opieirc/ircsession.cpp b/noncore/net/opieirc/ircsession.cpp index ca0df50..80a327a 100644 --- a/noncore/net/opieirc/ircsession.cpp +++ b/noncore/net/opieirc/ircsession.cpp | |||
@@ -1,5 +1,7 @@ | |||
1 | |||
1 | #include "ircsession.h" | 2 | #include "ircsession.h" |
2 | #include "ircmessageparser.h" | 3 | #include "ircmessageparser.h" |
4 | #include "ircchannelperson.h" | ||
3 | #include "ircversion.h" | 5 | #include "ircversion.h" |
4 | 6 | ||
5 | IRCSession::IRCSession(IRCServer *server) { | 7 | IRCSession::IRCSession(IRCServer *server) { |
@@ -137,7 +139,7 @@ void IRCSession::updateNickname(const QString &oldNickname, const QString &newNi | |||
137 | for (;it.current(); ++it) { | 139 | for (;it.current(); ++it) { |
138 | IRCChannelPerson *chanperson = it.current()->getPerson(oldNickname); | 140 | IRCChannelPerson *chanperson = it.current()->getPerson(oldNickname); |
139 | it.current()->removePerson(chanperson); | 141 | it.current()->removePerson(chanperson); |
140 | chanperson->person->setNick(newNickname); | 142 | chanperson->setNick(newNickname); |
141 | it.current()->addPerson(chanperson); | 143 | it.current()->addPerson(chanperson); |
142 | } | 144 | } |
143 | 145 | ||
@@ -194,3 +196,19 @@ void IRCSession::removePerson(IRCPerson *person) { | |||
194 | void IRCSession::handleMessage(IRCMessage *message) { | 196 | void IRCSession::handleMessage(IRCMessage *message) { |
195 | m_parser->parse(message); | 197 | m_parser->parse(message); |
196 | } | 198 | } |
199 | |||
200 | void IRCSession::whois(const QString &nickname) { | ||
201 | m_connection->whois(nickname); | ||
202 | } | ||
203 | |||
204 | void IRCSession::sendCTCPPing(const QString &nickname) { | ||
205 | m_connection->sendCTCPPing(nickname); | ||
206 | } | ||
207 | |||
208 | void IRCSession::sendCTCPRequest(const QString &nickname, const QString &type, const QString &args) { | ||
209 | m_connection->sendCTCPRequest(nickname, type, args); | ||
210 | } | ||
211 | |||
212 | void IRCSession::sendCTCPReply(const QString &nickname, const QString &type, const QString &args) { | ||
213 | m_connection->sendCTCPReply(nickname, type, args); | ||
214 | } | ||