diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/actions.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/actions.c b/src/actions.c index c6f70d0..07464cf 100644 --- a/src/actions.c +++ b/src/actions.c @@ -1996,10 +1996,6 @@ find_group (char *str) rp_group *group; int n; - /* Exact matches are special cases. */ - if ((group = groups_find_group_by_name (str, 1))) - return group; - /* Check if the user typed a group number. */ n = string_to_number (str); if (n >= 0) @@ -2009,6 +2005,10 @@ find_group (char *str) return group; } + /* Exact matches are special cases. */ + if ((group = groups_find_group_by_name (str, 1))) + return group; + group = groups_find_group_by_name (str, 0); return group; } |