summaryrefslogtreecommitdiff
path: root/src/map/pc.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-04-09 00:35:55 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-04-09 00:35:55 -0700
commit312e4d37cc964bbc5bd4e20fd25500b08dc70268 (patch)
tree47df84785736864cbf0690bb7ed1dfb960477595 /src/map/pc.cpp
parentd6b80d1b95ac566e7eb9b75389fb10ae8610dd6f (diff)
downloadtmwa-312e4d37cc964bbc5bd4e20fd25500b08dc70268.tar.gz
tmwa-312e4d37cc964bbc5bd4e20fd25500b08dc70268.tar.bz2
tmwa-312e4d37cc964bbc5bd4e20fd25500b08dc70268.tar.xz
tmwa-312e4d37cc964bbc5bd4e20fd25500b08dc70268.zip
Add @source command to help modified verions satisfy the AGPL
Diffstat (limited to 'src/map/pc.cpp')
-rw-r--r--src/map/pc.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index 7077b44..fa633b8 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -789,6 +789,14 @@ int pc_authok(int id, int login_id2, TimeT connect_until_time,
// this is far from the only such thing, but most of the others are logs
void pc_show_motd(dumb_ptr<map_session_data> sd)
{
+ // Attention all forks: DO NOT REMOVE THIS NOTICE.
+ // It exists to meet legal requirements.
+ //
+ // If you remove the sending of this message,
+ // the license does not permit you to publicly use this software.
+
+ clif_displaymessage(sd->sess, "This server is Free Software, for details type @source in chat or use the tmwa-source tool");
+
sd->state.seen_motd = true;
io::ReadFile in(motd_txt);
if (in.is_open())