summaryrefslogtreecommitdiff
path: root/src/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hash.c')
-rw-r--r--src/hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash.c b/src/hash.c
index 48a20e2..4c8d820 100644
--- a/src/hash.c
+++ b/src/hash.c
@@ -569,7 +569,7 @@ add_user_host(const char *user, const char *host, int global)
struct NameHost *nameh;
int hasident = 1;
- if (*user == '~')
+ if (*user == '~' || *user == '^')
{
hasident = 0;
++user;
@@ -629,7 +629,7 @@ delete_user_host(const char *user, const char *host, int global)
struct NameHost *nameh;
int hasident = 1;
- if (*user == '~')
+ if (*user == '~' || *user == '^')
{
hasident = 0;
++user;