From 60749486f978b8220b707541cf478fc87d8d0b36 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 25 Jan 2009 17:58:12 +0000 Subject: fix dedicated server chat messages --- src/dedicated/dedicated.cc | 5 +++++ src/dedicated/dedicated.h | 3 +++ 2 files changed, 8 insertions(+) (limited to 'src/dedicated') diff --git a/src/dedicated/dedicated.cc b/src/dedicated/dedicated.cc index 15860a3..43c636e 100644 --- a/src/dedicated/dedicated.cc +++ b/src/dedicated/dedicated.cc @@ -92,6 +92,11 @@ void Dedicated::shutdown() quit(0); } +void Dedicated::notify_message(const core::Message::Channel channel, const std::string &message) +{ + con_print << message << std::endl; +} + void Dedicated::quit(int status) { core::Application::quit(status); diff --git a/src/dedicated/dedicated.h b/src/dedicated/dedicated.h index 4b1f584..f458895 100644 --- a/src/dedicated/dedicated.h +++ b/src/dedicated/dedicated.h @@ -29,6 +29,9 @@ public: /// quit the server Application virtual void quit(int status); + + /// text notifications from the core + virtual void notify_message(const core::Message::Channel channel, const std::string &message); }; } // namespace dedicated -- cgit v1.2.3