From e3d52c7d555eefe5bb4befa0548c5d9d879015e1 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 25 Jan 2020 21:18:42 -0800 Subject: [PATCH] Users: use much more strict hostmask for `my` accounts --- PBot/Users.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/Users.pm b/PBot/Users.pm index d76287f9..18e380de 100644 --- a/PBot/Users.pm +++ b/PBot/Users.pm @@ -442,7 +442,7 @@ sub mycmd { if (not $u) { $channel = '.*'; - $hostmask = "$nick!*\@*"; + $hostmask = "$nick!$user\@" . $self->{pbot}->{antiflood}->address_to_mask($host); my $name = $nick; my ($existing_channel, $existing_hostmask) = $self->find_user_account($channel, $name);