/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2009, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
* ---
*
* tele.c: Send a telegram
- *
+ *
* Known contributors to this file:
* Steve McClure, 2000
- *
*/
#include <config.h>
-#include "misc.h"
-#include "player.h"
-#include "nat.h"
-#include "tel.h"
-#include "news.h"
-#include "file.h"
#include "commands.h"
+#include "news.h"
#include "optlist.h"
+#include "tel.h"
int
tele(void)
if (*player->argp[0] == 'a') {
if (getele("everybody", buf) <= 0) {
pr("Announcement aborted\n");
- return RET_OK;
+ return RET_FAIL;
}
pr("\n");
to = 0;
} else if (*player->argp[0] == 'p') {
if (getele("your Gracious Deity", buf) <= 0) {
pr("Prayer aborted\n");
- return RET_OK;
+ return RET_FAIL;
}
pr("\n");
if (typed_wu(player->cnum, 0, buf, TEL_NORM) < 0)
if (player->argp[2]) {
if (getele("multiple recipients", buf) < 0) {
pr("Telegram aborted\n");
- return RET_OK;
+ return RET_FAIL;
}
} else {
if (getele(cname(to), buf) < 0) {
pr("Telegram aborted\n");
- return RET_OK;
+ return RET_FAIL;
}
}
pr("\n");