diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-09 20:28:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-09 20:28:04 +0300 |
commit | 4ee5c0ce8a8ded1f4aa30212948c3acefb2b6242 (patch) | |
tree | 4b1c059f1f422982cf957bd968d7062de4ebdfae /src/gui/windows/chatwindow.cpp | |
parent | 50a5ff8c29c9df133104d9113debafbc5424d0ab (diff) | |
download | manaplus-4ee5c0ce8a8ded1f4aa30212948c3acefb2b6242.tar.gz manaplus-4ee5c0ce8a8ded1f4aa30212948c3acefb2b6242.tar.bz2 manaplus-4ee5c0ce8a8ded1f4aa30212948c3acefb2b6242.tar.xz manaplus-4ee5c0ce8a8ded1f4aa30212948c3acefb2b6242.zip |
Impliment DebugMessageListener in chat window.
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r-- | src/gui/windows/chatwindow.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index 4324acca5..dd1c4d5f7 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -2125,3 +2125,10 @@ bool ChatWindow::isTabPresent(const ChatTab *const tab) const { return mChatTabs->isTabPresent(tab); } + +void ChatWindow::debugMessage(const std::string &msg) +{ + logger->log(msg); + if (debugChatTab) + debugChatTab->chatLog(msg, ChatMsgType::BY_SERVER); +} |