summaryrefslogtreecommitdiff
path: root/src/common/console.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-03-23 20:54:56 +0100
committerHaru <haru@dotalux.com>2015-12-15 20:53:48 +0100
commit86fab91ae6c4a40af24b1d3f98601ba5d6ca9adb (patch)
tree2acac7f31c37f99f598fae79c11fe2294eeabf10 /src/common/console.c
parent7a3971571ac2590c6f43a1494b6fcdb6ae632e27 (diff)
downloadhercules-86fab91ae6c4a40af24b1d3f98601ba5d6ca9adb.tar.gz
hercules-86fab91ae6c4a40af24b1d3f98601ba5d6ca9adb.tar.bz2
hercules-86fab91ae6c4a40af24b1d3f98601ba5d6ca9adb.tar.xz
hercules-86fab91ae6c4a40af24b1d3f98601ba5d6ca9adb.zip
Added GPL information on interactive server startup
Diffstat (limited to 'src/common/console.c')
-rw-r--r--src/common/console.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common/console.c b/src/common/console.c
index 477141b48..cc0e920c4 100644
--- a/src/common/console.c
+++ b/src/common/console.c
@@ -75,6 +75,16 @@ void display_title(void) {
ShowInfo("Compiled with %s\n", sysinfo->compiler());
ShowInfo("Compile Flags: %s\n", sysinfo->cflags());
}
+
+/**
+ * Shows a license notice as per GNU GPL recommendation.
+ */
+void display_gplnotice(void)
+{
+ ShowInfo("Hercules, Copyright (C) 2012-2015, Hercules Dev Team and others.\n");
+ ShowInfo("Licensed under the GNU General Public License, version 3 or later.\n");
+}
+
#ifdef CONSOLE_INPUT
int console_parse_key_pressed(void)
{
@@ -532,6 +542,7 @@ void console_defaults(void)
console->init = console_init;
console->final = console_final;
console->display_title = display_title;
+ console->display_gplnotice = display_gplnotice;
#ifdef CONSOLE_INPUT
console->input = &console_input_s;
console->input->parse_init = console_parse_init;