use IO::File;
use vars qw($VERSION %IRSSI);
-$VERSION = '1.3.0';
+$VERSION = '1.3.1';
%IRSSI = (
authors => 'Wouter Coekaerts',
contact => 'wouter@coekaerts.be',
'types' => ['publics'],
'signal' => 'message irc op_public',
'sub' => sub {
- my ($prefix, $channel);
+ my ($prefix, $channel, $statusmsg);
$channel = $_[4];
- $prefix = substr($channel, 0, 1, '');
+ $statusmsg = quotemeta($_[0]->isupport('statusmsg') // '@');
+ $channel =~ s/^([$statusmsg]+)//;
+ $prefix = $1;
check_signal_message(\@_,1,$_[0],$channel,$_[2],$_[3],'publics',{'prefix'=>$prefix});
},
},
}
# -no<filter>
- if ($option =~ /^no(.*)$/ && $filters{$1}) {
+ if ($option =~ /^no((not_)?(.*))$/ && $filters{$3}) {
delete $trigger->{'filters'}->{$1};
}
}