]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/rea.c
Don't lie "You have a new telegram" after read with inform off
[empserver] / src / lib / commands / rea.c
index f30109b7f4dbec46811737c60265d1289c20c476..33fcde34ca4ac5128c465d77d5f1fce23a2c2cae 100644 (file)
@@ -132,6 +132,16 @@ rea(void)
     if (res < 0)
        pr("\n> Mailbox corrupt, tell the deity.\n");
 
+    if (*kind == 'a')
+       np->nat_ann = 0;
+    else {
+       np->nat_tgms = 0;
+       if (np->nat_flags & NF_INFORM) {
+           pr_inform(player, "\n");
+       }
+    }
+    putnat(np);
+
     if (teles > 0 && player->cnum == num && may_delete) {
        pr("\n");
        if (teles == 1) {
@@ -174,11 +184,6 @@ rea(void)
            pr("No %ss for %s at the moment...\n", kind, cname(num));
     }
     (void)fclose(telfp);
-    if (np->nat_flags & NF_INFORM) {
-       pr_inform(player, "\n");
-       np->nat_tgms = 0;
-       putnat(np);
-    }
     return RET_OK;
 }