Jelajahi Sumber

Merge pull request #6 from phillid/master

Don't treat thirdlines from nick 'Mode' as Mode changes in weechat3
walle303 10 tahun lalu
induk
melakukan
dc66075300
1 mengubah file dengan 4 tambahan dan 5 penghapusan
  1. 4 5
      modules/Pisg/Parser/Format/weechat3.pm

+ 4 - 5
modules/Pisg/Parser/Format/weechat3.pm

@@ -73,11 +73,6 @@ sub thirdline
             $hash{newtopic} =~ m/" to "(.*)"/;
             $hash{newtopic} =~ m/" to "(.*)"/;
             $hash{newtopic} = $1;
             $hash{newtopic} = $1;
 
 
-        } elsif ($3 eq 'Mode') {
-            $hash{newmode} = substr($5, 1);
-            $hash{nick} = $8 || $7;
-            $hash{nick} =~ s/.* (\S+)$/$1/; # Get the last word of the string
-
         } elsif (($5.$6) eq 'hasjoined') {
         } elsif (($5.$6) eq 'hasjoined') {
             $hash{newjoin} = $3;
             $hash{newjoin} = $3;
 
 
@@ -85,6 +80,10 @@ sub thirdline
             if ($8 =~ /^\s+(\S+)/) {
             if ($8 =~ /^\s+(\S+)/) {
                 $hash{newnick} = $1;
                 $hash{newnick} = $1;
             }
             }
+        } elsif ($3 eq 'Mode') {
+            $hash{newmode} = substr($5, 1);
+            $hash{nick} = $8 || $7;
+            $hash{nick} =~ s/.* (\S+)$/$1/; # Get the last word of the string
         }
         }
 
 
         return \%hash;
         return \%hash;