Explorar el Código

Return what nick matched, and check for nicks seen but not in aliases in is_nick function (needed for smarter attacker stats)

sbingner hace 23 años
padre
commit
a6c499e8dc
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      modules/Pisg/Common.pm

+ 3 - 1
modules/Pisg/Common.pm

@@ -88,7 +88,9 @@ sub is_nick
     my $lcnick = lc($nick);
 
     if ($aliases{$lcnick}) {
-        return 1;
+        return $aliases{$lcnick};
+    } elsif ($aliasseen{$lcnick}) {
+        return $aliasseen{$lcnick}
     }
     return 0;
 }