Added user:net for network-specific user blocks.

This commit is contained in:
Elijah Perrault committed 2011-02-02 13:43:42 -07:00
1 parent 6f519d4e0d
commit 80e8578cb9
2 files changed
+12 -2

No files matched your search

+11 -2
View File
@@ -354,8 +354,17 @@ sub match_user
# For each user block.
my %ulhp = %{ $uhp{$userkey} };
foreach my $uhk (keys %ulhp) {
# For each user.
if ($uhk eq "mask") {
# For each user.
if ($uhk eq "net") {
if (defined $user{svr}) {
if (lc($user{svr}) ne lc(($ulhp{$uhk})[0][0])) {
# config.user:net conflicts with irc.user:svr.
last;
}
}
}
elsif ($uhk eq "mask") {
# Put together the user information.
my $mask = $user{nick}."!".$user{user}."@".$user{host};
if (API::IRC::match_mask($mask, ($ulhp{$uhk})[0][0])) {