From 0c60e574a99c21967c37f3e31b6abddbb6b40e18 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 30 Jan 2011 18:37:02 +0100 Subject: [PATCH] Permit sharebmap with yourself Does nothing. Before, it failed with a mildly bogus "does not have friendly relations towards you" message. --- src/lib/commands/shar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/commands/shar.c b/src/lib/commands/shar.c index 2e9ae72b..4f219018 100644 --- a/src/lib/commands/shar.c +++ b/src/lib/commands/shar.c @@ -47,7 +47,7 @@ shar(void) if (to < 0) return RET_SYN; - if (getrel(getnatp(to), player->cnum) < FRIENDLY) { + if (to != player->cnum && getrel(getnatp(to), player->cnum) < FRIENDLY) { pr("%s does not have friendly relations towards you\n", cname(to)); return RET_FAIL; }