summaryrefslogtreecommitdiff
path: root/src/net/manaserv/adminhandler.h
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2012-01-05 23:25:29 +0100
committerErik Schilling <ablu.erikschilling@googlemail.com>2012-01-16 19:53:59 +0100
commit79d6471f3950bf9ae062870f4fdcc292073d4b8d (patch)
tree10f9da723dcc932c9d526a26a7e7ef5504d523ac /src/net/manaserv/adminhandler.h
parent81306cf16bd4660b868f24a74b1e731c8a00af95 (diff)
downloadmana-79d6471f3950bf9ae062870f4fdcc292073d4b8d.tar.gz
mana-79d6471f3950bf9ae062870f4fdcc292073d4b8d.tar.bz2
mana-79d6471f3950bf9ae062870f4fdcc292073d4b8d.tar.xz
mana-79d6471f3950bf9ae062870f4fdcc292073d4b8d.zip
Fixed adminhandler being not initialized
This fixes a segfault when trying to do /announce on manaserv servers. Reviewed-by: Bertram, bjorn.
Diffstat (limited to 'src/net/manaserv/adminhandler.h')
-rw-r--r--src/net/manaserv/adminhandler.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/manaserv/adminhandler.h b/src/net/manaserv/adminhandler.h
index 2d71f409..16c30e1c 100644
--- a/src/net/manaserv/adminhandler.h
+++ b/src/net/manaserv/adminhandler.h
@@ -24,13 +24,17 @@
#include "net/adminhandler.h"
+#include "net/manaserv/messagehandler.h"
+
namespace ManaServ {
-class AdminHandler : public Net::AdminHandler
+class AdminHandler : public Net::AdminHandler, public MessageHandler
{
public:
AdminHandler();
+ void handleMessage(Net::MessageIn &msg);
+
void announce(const std::string &text);
void localAnnounce(const std::string &text);