From 9dd31bd62481b5c387b0ee12a920527f7ccbb677 Mon Sep 17 00:00:00 2001 From: wowaname Date: Mon, 19 Dec 2016 05:00:57 +0000 Subject: [PATCH] snomasks.pl: make work with unrealircd --- scripts/snomasks.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/snomasks.pl b/scripts/snomasks.pl index 070df16..b3e3445 100644 --- a/scripts/snomasks.pl +++ b/scripts/snomasks.pl @@ -11,7 +11,7 @@ no strict 'subs'; my $SCRIPT_NAME = 'snomasks'; my $SCRIPT_AUTHOR = 'The Krusty Krab '; -my $SCRIPT_VERSION = '1.0'; +my $SCRIPT_VERSION = '1.1'; my $SCRIPT_LICENCE = 'Public domain'; my $SCRIPT_DESC = 'Server notice mask bar item for opers'; @@ -42,7 +42,8 @@ sub buffer_switch { sub irc_008 { 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; $snomask{$server} = $modes;