From: Markus Armbruster Date: Sun, 30 Jan 2011 17:37:02 +0000 (+0100) Subject: Permit sharebmap with yourself X-Git-Tag: v4.3.27~140 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=0c60e574a99c21967c37f3e31b6abddbb6b40e18 Permit sharebmap with yourself Does nothing. Before, it failed with a mildly bogus "does not have friendly relations towards you" message. --- diff --git a/src/lib/commands/shar.c b/src/lib/commands/shar.c index 2e9ae72b4..4f2190181 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; }