Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-01-25 17:58:12 +0000
committerStijn Buys <ingar@osirion.org>2009-01-25 17:58:12 +0000
commit60749486f978b8220b707541cf478fc87d8d0b36 (patch)
treea943e04276092f6f47547509238f208432bec846 /src/dedicated
parentf584439abb26f934632089b6333a4fd47c29d3ef (diff)
fix dedicated server chat messages
Diffstat (limited to 'src/dedicated')
-rw-r--r--src/dedicated/dedicated.cc5
-rw-r--r--src/dedicated/dedicated.h3
2 files changed, 8 insertions, 0 deletions
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