diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client.c | 5 |
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); |