3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-23 04:19:27 +01:00

Users: use much more strict hostmask for my accounts

This commit is contained in:
Pragmatic Software 2020-01-25 21:18:42 -08:00
parent 153d2c111f
commit e3d52c7d55

View File

@ -442,7 +442,7 @@ sub mycmd {
if (not $u) { if (not $u) {
$channel = '.*'; $channel = '.*';
$hostmask = "$nick!*\@*"; $hostmask = "$nick!$user\@" . $self->{pbot}->{antiflood}->address_to_mask($host);
my $name = $nick; my $name = $nick;
my ($existing_channel, $existing_hostmask) = $self->find_user_account($channel, $name); my ($existing_channel, $existing_hostmask) = $self->find_user_account($channel, $name);