From 85057efe2b9d3a68f4f151b8de9e1a587cf3fae2 Mon Sep 17 00:00:00 2001 From: mekolat Date: Thu, 7 May 2015 13:49:33 -0400 Subject: death to the motd!!!11one11 --- src/map/pc.cpp | 11 ----------- tools/config.py | 1 - 2 files changed, 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 sd) { // Attention all forks: DO NOT REMOVE THIS NOTICE. @@ -815,15 +813,6 @@ void pc_show_motd(dumb_ptr sd) npc_event_doall_l(stringish("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, '{}') -- cgit v1.2.3-60-g2f50