瀏覽代碼

irssi.pm: Recognize joins even when autorealname.pl is loaded

Christoph Berg 21 年之前
父節點
當前提交
fd107cdabe
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 1 0
      docs/Changelog
  2. 2 1
      modules/Pisg/Parser/Format/irssi.pm

+ 1 - 0
docs/Changelog

@@ -13,6 +13,7 @@ pisg (0.63) - ??
      before being used first.
      before being used first.
    * Links for users in "These didn't make it to the top" (thanks, Edward
    * Links for users in "These didn't make it to the top" (thanks, Edward
      Pinski).
      Pinski).
+   * irssi.pm: Recognize joins even when autorealname.pl is loaded.
 
 
 pisg (0.62) - Sat Dec, 11th 2004
 pisg (0.62) - Sat Dec, 11th 2004
    Changes by Christoph Berg:
    Changes by Christoph Berg:

+ 2 - 1
modules/Pisg/Parser/Format/irssi.pm

@@ -79,7 +79,8 @@ sub thirdline
             $hash{nick} = $8 || $7;
             $hash{nick} = $8 || $7;
             $hash{nick} =~ s/.* (\S+)$/$1/; # Get the last word of the string
             $hash{nick} =~ s/.* (\S+)$/$1/; # Get the last word of the string
 
 
-        } elsif (($5.$6) eq 'hasjoined') {
+        # when autorealname.pl is loaded, "has joined" moves to $6 $7
+        } elsif (($5.$6) eq 'hasjoined' or ($6.$7) eq 'hasjoined') {
             $hash{newjoin} = $3;
             $hash{newjoin} = $3;
 
 
         } elsif (($5.$6) eq 'nowknown') {
         } elsif (($5.$6) eq 'nowknown') {