summaryrefslogtreecommitdiff
path: root/src/gui/chatwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-09 19:49:14 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-09 19:49:14 +0300
commit7e3bd20e9675202e30fac741f3d3acb4f19b109d (patch)
tree9e12ab198b68e8f6ed0dd2121a72066c7b7053ba /src/gui/chatwindow.cpp
parentb9d66c41246fef56e41f600b5523a5ff1a29a1c8 (diff)
downloadmv-7e3bd20e9675202e30fac741f3d3acb4f19b109d.tar.gz
mv-7e3bd20e9675202e30fac741f3d3acb4f19b109d.tar.bz2
mv-7e3bd20e9675202e30fac741f3d3acb4f19b109d.tar.xz
mv-7e3bd20e9675202e30fac741f3d3acb4f19b109d.zip
Small refactoring based on idea from mana commit 30d4b0adf4f17f05d1d62fc3428c896ef1079b6b
Diffstat (limited to 'src/gui/chatwindow.cpp')
-rw-r--r--src/gui/chatwindow.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp
index 47db83c75..372461b29 100644
--- a/src/gui/chatwindow.cpp
+++ b/src/gui/chatwindow.cpp
@@ -154,7 +154,7 @@ ChatWindow::ChatWindow():
mChatHistoryIndex(0)
{
listen(CHANNEL_NOTICES);
- listen(CHANNEL_ATTRIBUTES);
+ listen(Mana::CHANNEL_ATTRIBUTES);
setWindowName("Chat");
@@ -798,19 +798,19 @@ void ChatWindow::keyPressed(gcn::KeyEvent &event)
addInputText(Temp, false);
}
-void ChatWindow::event(Channels channel, const Mana::Event &event)
+void ChatWindow::event(Mana::Channels channel, const Mana::Event &event)
{
- if (channel == CHANNEL_NOTICES)
+ if (channel == Mana::CHANNEL_NOTICES)
{
- if (event.getName() == EVENT_SERVERNOTICE && localChatTab)
+ if (event.getName() == Mana::EVENT_SERVERNOTICE && localChatTab)
localChatTab->chatLog(event.getString("message"), BY_SERVER);
}
- else if (channel == CHANNEL_ATTRIBUTES)
+ else if (channel == Mana::CHANNEL_ATTRIBUTES)
{
if (!config.getBoolValue("showBattleEvents"))
return;
- if (event.getName() == EVENT_UPDATEATTRIBUTE)
+ if (event.getName() == Mana::EVENT_UPDATEATTRIBUTE)
{
switch (event.getInt("id"))
{
@@ -834,7 +834,7 @@ void ChatWindow::event(Channels channel, const Mana::Event &event)
break;
};
}
- else if (event.getName() == EVENT_UPDATESTAT)
+ else if (event.getName() == Mana::EVENT_UPDATESTAT)
{
if (!config.getBoolValue("showJobExp"))
return;