summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormekolat <mekolat@users.noreply.github.com>2015-05-07 13:49:33 -0400
committermekolat <mekolat@users.noreply.github.com>2015-05-07 13:49:33 -0400
commit85057efe2b9d3a68f4f151b8de9e1a587cf3fae2 (patch)
tree114d0b156053b6f9ff395a9173d77c8ce85a43a9
parentd582d06bfb0ea3239d1c61b355ab3427318e915d (diff)
downloadtmwa-85057efe2b9d3a68f4f151b8de9e1a587cf3fae2.tar.gz
tmwa-85057efe2b9d3a68f4f151b8de9e1a587cf3fae2.tar.bz2
tmwa-85057efe2b9d3a68f4f151b8de9e1a587cf3fae2.tar.xz
tmwa-85057efe2b9d3a68f4f151b8de9e1a587cf3fae2.zip
death to the motd!!!11one11
-rw-r--r--src/map/pc.cpp11
-rwxr-xr-xtools/config.py1
2 files changed, 0 insertions, 12 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index 80abb73..d99491b 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -801,8 +801,6 @@ int pc_authok(AccountId id, int login_id2,
return 0;
}
-// TODO fix this to cache and use inotify
-// 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.
@@ -815,15 +813,6 @@ void pc_show_motd(dumb_ptr<map_session_data> sd)
npc_event_doall_l(stringish<ScriptLabel>("OnPCLoginEvent"_s), sd->bl_id, nullptr);
sd->state.seen_motd = true;
- io::ReadFile in(map_conf.motd_txt);
- if (in.is_open())
- {
- AString buf;
- while (in.getline(buf))
- {
- clif_displaymessage(sd->sess, buf);
- }
- }
}
/*==========================================
diff --git a/tools/config.py b/tools/config.py
index aeb4e99..583904a 100755
--- a/tools/config.py
+++ b/tools/config.py
@@ -573,7 +573,6 @@ def build_config():
map_conf.opt('npc', addnpc, '{}')
map_conf.opt('delnpc', delnpc, '{}')
map_conf.opt('autosave_time', seconds, 'DEFAULT_AUTOSAVE_INTERVAL', {map_h})
- map_conf.opt('motd_txt', RString, lit('conf/motd.txt'))
map_conf.opt('mapreg_txt', RString, lit('save/mapreg.txt'))
map_conf.opt('gm_log', RString, '{}')
map_conf.opt('log_file', RString, '{}')