Announcement rejection is completely broken for deities.
Additionally, deity announcements aren't exempted from rejection, but
that should not normally matter, because the reject command doesn't
let you reject deities.
Broken when announcements were separated from telegrams in Empire 3.
Fix to test the sender's instead of the player's divinity.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
* Doug Hay, 1998
* Steve McClure, 1998-2000
* Ron Koenderink, 2005-2007
- * Markus Armbruster, 2009-2011
+ * Markus Armbruster, 2009-2016
*/
#include <config.h>
if (res <= 0)
break;
if (*kind == 'a') {
- if ((!player->god && (getrejects(tgm.tel_from, np) & REJ_ANNO))
+ if ((getnatp(tgm.tel_from)->nat_stat != STAT_GOD
+ && (getrejects(tgm.tel_from, np) & REJ_ANNO))
|| tgm.tel_date < then) {
res = tel_read_body(telfp, mbox, &tgm, NULL, NULL);
if (res < 0)