use Irssi::Irc;
use vars qw($VERSION %IRSSI);
-$VERSION = "1.2";
+$VERSION = "1.3";
%IRSSI = (
authors => 'Nathan Handler, Joseph Price',
contact => 'nathan.handler@gmail.com, pricechild@ubuntu.com',
$maskreg=~s/\*/\.\*\?/g;
#We only want to display who set the ban/quiet if it is listed as a person
- if($setby=~m/^.*?\.freenode\.net$/i) {
+ if($setby=~m/^[^!.]+\.[^!]+$/i) {
$setby='';
}
else {
}
# any logged-in user
if($maskreg=~m/^\$a$/i) {
+ if($account!~m/^0$/) {
+ Irssi::active_win()->print(
+ "$type against \x02$mask\x02 in $banchannel matches identified user." . $setby);
+ $issues++;
+ }
+ else {
+# Irssi::active_win()->print("$type against \x02$mask\x02 does NOT match $account" . $setby);
+ }
+ }
+ # any unidentified user
+ if($maskreg=~m/^\$\~a$/i) {
if($account=~m/^0$/) {
Irssi::active_win()->print(
"$type against \x02$mask\x02 in $banchannel matches unidentified user." . $setby);
}
# full match
if($maskreg=~m/^\$x:(.*?)$/i) {
- my $full = "$nick!user\@host\#$real";
+ my $full = "$nick!$user\@$host\#$real";
if($full=~m/^$1$/i) {
Irssi::active_win()->print(
"$type against \x02$mask\x02 in $banchannel matches $full" . $setby);