[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

There is likely a better way to do this, but...



--- stock/infobot-0.44.4/src/Extras.pl  Tue Feb 29 09:28:04 2000
+++ Extras.pl   Wed Apr 12 16:16:22 2000
@@ -712,7 +712,8 @@
     if (getparam('plusplus')) {
        my $message2 = $message;

-       if ($message2 =~ s/^(karma|score)\s+(for\s+)?//) {
+       # Fixed the "so-and-so? has neutral karma" bug. - Masque, 12Apr2k
+       if ($message2 =~ s/^(?:karma|score)\s+(?:for\s+)?(.*?)\??$/$1/) {
            $message2 = lc($message2);
            $message2 =~ s/\s+/ /g;
            if ($message2 eq "me") {