]> git.pond.sub.org Git - empserver/commit - src/lib/player/player.c
Log out player when time per day is exceeded
authorRon Koenderink <rkoenderink@yahoo.ca>
Sun, 16 Nov 2008 14:42:42 +0000 (08:42 -0600)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 16 Nov 2008 18:16:36 +0000 (13:16 -0500)
commit344e91bbb9a1cb78ec0bbe9f1ad719cc34f4c497
treeafdf502eba1aed4631ed00b8be6166fb7ca6b1b2
parent9fe6f7a40627ef2f53b10f134960792a63d0dfea
Log out player when time per day is exceeded

Commit 3da4030 already changed player_main() to log out the player
when m_m_p_d was exceeded in command().  This crept in accidentally.
Complete the job by changing status() to log out the player instead of
downgrading him to visitor status.

Also, change player_main(), command() and status() to apply the time
limit to countries in sanctuary in addition to active countries.
Leave visitors alone, because those are shared logins.  Make the
disconnect message to a player consistent for all situations.

Note that commit 875a80d1 already changed player_main() to apply the
time limit only to active countries instead of all, just like status()
does, but neglected to document that.
src/lib/player/player.c
src/scripts/nightly/patches/All/emptime.c.patch