summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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, '{}')