snomasks.pl: make work with unrealircd
This commit is contained in:
parent
efff17d8de
commit
9dd31bd624
@ -11,7 +11,7 @@ no strict 'subs';
|
|||||||
|
|
||||||
my $SCRIPT_NAME = 'snomasks';
|
my $SCRIPT_NAME = 'snomasks';
|
||||||
my $SCRIPT_AUTHOR = 'The Krusty Krab <wowaname@volatile.ch>';
|
my $SCRIPT_AUTHOR = 'The Krusty Krab <wowaname@volatile.ch>';
|
||||||
my $SCRIPT_VERSION = '1.0';
|
my $SCRIPT_VERSION = '1.1';
|
||||||
my $SCRIPT_LICENCE = 'Public domain';
|
my $SCRIPT_LICENCE = 'Public domain';
|
||||||
my $SCRIPT_DESC = 'Server notice mask bar item for opers';
|
my $SCRIPT_DESC = 'Server notice mask bar item for opers';
|
||||||
|
|
||||||
@ -42,7 +42,8 @@ sub buffer_switch {
|
|||||||
|
|
||||||
sub irc_008 {
|
sub irc_008 {
|
||||||
my (undef, $server, $modes) = (shift,
|
my (undef, $server, $modes) = (shift,
|
||||||
shift =~ /^(.+),irc_raw_in_008$/, shift =~ /:[^ ]* 008 [^ ]* ([^ ]*)/);
|
shift =~ /^(.+),irc_raw_in_008$/,
|
||||||
|
shift =~ /:[^ ]* 008 [^ ]* (?::Server notice mask \()?([^ )]*)/);
|
||||||
$server = lc $server;
|
$server = lc $server;
|
||||||
|
|
||||||
$snomask{$server} = $modes;
|
$snomask{$server} = $modes;
|
||||||
|
Loading…
Reference in New Issue
Block a user