summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-09 00:11:54 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-09 17:54:12 +0200
commit1e1f619b9ae5aa26058c499c988f45d1fb1b6d53 (patch)
tree1fe58c53388054ced122b5327e33fc2851a0606a /src/gui/chat.cpp
parent30d4b0adf4f17f05d1d62fc3428c896ef1079b6b (diff)
downloadmana-client-1e1f619b9ae5aa26058c499c988f45d1fb1b6d53.tar.gz
mana-client-1e1f619b9ae5aa26058c499c988f45d1fb1b6d53.tar.bz2
mana-client-1e1f619b9ae5aa26058c499c988f45d1fb1b6d53.tar.xz
mana-client-1e1f619b9ae5aa26058c499c988f45d1fb1b6d53.zip
Moved Channels to Mana::Event::Channel
Acked-by: Jared Adams
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index fecf892a..17eb8af3 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -90,8 +90,8 @@ ChatWindow::ChatWindow():
mAutoComplete(new ChatAutoComplete),
mTmpVisible(false)
{
- listen(CHANNEL_CHAT);
- listen(CHANNEL_NOTICES);
+ listen(Mana::Event::ChatChannel);
+ listen(Mana::Event::NoticesChannel);
setWindowName("Chat");
@@ -375,14 +375,14 @@ void ChatWindow::mouseDragged(gcn::MouseEvent &event)
}
}
-void ChatWindow::event(Channels channel, const Mana::Event &event)
+void ChatWindow::event(Mana::Event::Channel channel, const Mana::Event &event)
{
- if (channel == CHANNEL_NOTICES)
+ if (channel == Mana::Event::NoticesChannel)
{
if (event.getType() == Mana::Event::ServerNotice)
localChatTab->chatLog(event.getString("message"), BY_SERVER);
}
- else if (channel == CHANNEL_CHAT)
+ else if (channel == Mana::Event::ChatChannel)
{
if (event.getType() == Mana::Event::Whisper)
{