summaryrefslogtreecommitdiff
path: root/src/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client.c b/src/client.c
index 988270a..2bc2b3a 100644
--- a/src/client.c
+++ b/src/client.c
@@ -512,9 +512,8 @@ find_person(const struct Client *client_p, const char *name)
if (IsDigit(*name))
{
- if ((target_p = hash_find_id(name)) != NULL)
- if (!IsServer(client_p) && !HasFlag(client_p, FLAGS_SERVICE))
- target_p = NULL;
+ if (IsServer(client_p) || HasFlag(client_p, FLAGS_SERVICE))
+ target_p = hash_find_id(name);
}
else
target_p = hash_find_client(name);