diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-29 00:44:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-29 00:44:18 +0300 |
commit | e02996049927ca4f52852fe0e437010fd07238a3 (patch) | |
tree | 7ef583190ec9b20a7e35d880fcdc2c1c7cb51934 /src/gui/chatwindow.cpp | |
parent | be3c1cf049d3df146d18acfb7cbead2ef3f660f1 (diff) | |
download | mv-e02996049927ca4f52852fe0e437010fd07238a3.tar.gz mv-e02996049927ca4f52852fe0e437010fd07238a3.tar.bz2 mv-e02996049927ca4f52852fe0e437010fd07238a3.tar.xz mv-e02996049927ca4f52852fe0e437010fd07238a3.zip |
remove some code from deprivatedevent class.
Diffstat (limited to 'src/gui/chatwindow.cpp')
-rw-r--r-- | src/gui/chatwindow.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp index f6035c5dc..0bc3b9edc 100644 --- a/src/gui/chatwindow.cpp +++ b/src/gui/chatwindow.cpp @@ -193,7 +193,6 @@ ChatWindow::ChatWindow(): mAutoHide(false), mShowBattleEvents(false) { - listen(CHANNEL_NOTICES); listen(CHANNEL_ATTRIBUTES); setWindowName("Chat"); @@ -960,12 +959,7 @@ void ChatWindow::keyPressed(gcn::KeyEvent &event) void ChatWindow::processEvent(Channels channel, const DepricatedEvent &event) { - if (channel == CHANNEL_NOTICES) - { - if (event.getName() == EVENT_SERVERNOTICE && localChatTab) - localChatTab->chatLog(event.getString("message"), BY_SERVER); - } - else if (channel == CHANNEL_ATTRIBUTES) + if (channel == CHANNEL_ATTRIBUTES) { if (!mShowBattleEvents) return; |