]> git.pond.sub.org Git - empserver/commit
Change wire not to read more after confirming deletion
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 23 Nov 2011 06:34:19 +0000 (07:34 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 29 Dec 2011 10:47:07 +0000 (11:47 +0100)
commit43f562145eab56e12255b8b53b11f365591a9000
treef7b906a3e5b1fa12eb342b9e5d1525f2cca6f061
parent5acdcfec6325f9ad526200aca40fe5d0a7660f86
Change wire not to read more after confirming deletion

Telegram deletion deletes the mailbox.  If more telegrams arrive while
we wait for the player to confirm deletion, the mailbox again contains
unread telegrams, so we can't just delete it.  Instead, rea() loops to
read the new telegrams.

Announcements worked the same until Empire 3 put them in a single file
shared by all.  Since then, deleting announcements merely updates
nat_annotim, and there's no need to read new announcements after
getting the player's confirmation.  So don't.
src/lib/commands/rea.c