Added user:net for network-specific user blocks.
This commit is contained in:
1 parent
6f519d4e0d
commit
80e8578cb9
2 files changed
+12
-2
No files matched your search
@@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log
|
|||||||
|
|
||||||
3.0 Indev
|
3.0 Indev
|
||||||
==================================================================
|
==================================================================
|
||||||
|
* Added user:net for network-specific user blocks.
|
||||||
* Bug fix: Fixed broken no-parameter config blocks.
|
* Bug fix: Fixed broken no-parameter config blocks.
|
||||||
* Added core command SHUTDOWN.
|
* Added core command SHUTDOWN.
|
||||||
* Added core command MODRELOAD.
|
* Added core command MODRELOAD.
|
||||||
|
|||||||
+11
-2
@@ -354,8 +354,17 @@ sub match_user
|
|||||||
# For each user block.
|
# For each user block.
|
||||||
my %ulhp = %{ $uhp{$userkey} };
|
my %ulhp = %{ $uhp{$userkey} };
|
||||||
foreach my $uhk (keys %ulhp) {
|
foreach my $uhk (keys %ulhp) {
|
||||||
# For each user.
|
# For each user.
|
||||||
if ($uhk eq "mask") {
|
|
||||||
|
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.
|
# Put together the user information.
|
||||||
my $mask = $user{nick}."!".$user{user}."@".$user{host};
|
my $mask = $user{nick}."!".$user{user}."@".$user{host};
|
||||||
if (API::IRC::match_mask($mask, ($ulhp{$uhk})[0][0])) {
|
if (API::IRC::match_mask($mask, ($ulhp{$uhk})[0][0])) {
|
||||||
|
|||||||
Reference in new issue
Block a user