Added irc support for lobby dialog. Takes some time to connect before messages can be sent/received. No special stuff yet, no user list, no connection notifications. Still work in progress.

This commit is contained in:
lotodore committed 2007-09-26 11:48:33 +00:00
1 parent 6c19233c18
commit 7bbf76fe5d
17 files changed
+117 -19

No files matched your search

@@ -38,8 +38,12 @@ LobbyChat::~LobbyChat()
void LobbyChat::sendMessage() {
myLobby->getSession().sendChatMessage(myLobby->lineEdit_ChatInput->text().toUtf8().constData());
QString tmpMsg(myLobby->lineEdit_ChatInput->text());
myLobby->getSession().sendIrcChatMessage(tmpMsg.toUtf8().constData());
myLobby->lineEdit_ChatInput->setText("");
// TODO: just temporary instead of callback
receiveMessage("(me)", tmpMsg);
}
void LobbyChat::receiveMessage(QString playerName, QString message) {