summaryrefslogtreecommitdiff
path: root/src/net/manaserv/inventoryhandler.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2010-11-11 21:55:25 -0500
committerChuck Miller <shadowmil@gmail.com>2010-11-11 22:45:58 -0500
commit5727a2d9eeb0688a16e5b7fe32f6d9836c4f7a4e (patch)
tree994cdeb1187a94996ca38c5e274aabaa5f1fec76 /src/net/manaserv/inventoryhandler.cpp
parent3dd1baab3fb00a3aa99447430f16a431a205c614 (diff)
downloadmana-5727a2d9eeb0688a16e5b7fe32f6d9836c4f7a4e.tar.gz
mana-5727a2d9eeb0688a16e5b7fe32f6d9836c4f7a4e.tar.bz2
mana-5727a2d9eeb0688a16e5b7fe32f6d9836c4f7a4e.tar.xz
mana-5727a2d9eeb0688a16e5b7fe32f6d9836c4f7a4e.zip
Have the event system channels use enums instead of strings
Reviewed-by: Freeyorp
Diffstat (limited to 'src/net/manaserv/inventoryhandler.cpp')
-rw-r--r--src/net/manaserv/inventoryhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/manaserv/inventoryhandler.cpp b/src/net/manaserv/inventoryhandler.cpp
index da1abab5..45ab1ebd 100644
--- a/src/net/manaserv/inventoryhandler.cpp
+++ b/src/net/manaserv/inventoryhandler.cpp
@@ -52,7 +52,7 @@ InventoryHandler::InventoryHandler()
handledMessages = _messages;
inventoryHandler = this;
- listen("Item");
+ listen(CHANNEL_ITEM);
}
void InventoryHandler::handleMessage(Net::MessageIn &msg)
@@ -108,10 +108,10 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg)
}
}
-void InventoryHandler::event(const std::string &channel,
+void InventoryHandler::event(Channels channel,
const Mana::Event &event)
{
- if (channel == "Item")
+ if (channel == CHANNEL_ITEM)
{
Item *item = event.getItem("item");