Explorar o código

Grab topic on join

sbingner %!s(int64=24) %!d(string=hai) anos
pai
achega
2e2c761ffc
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      modules/Pisg/Parser/Format/xchat.pm

+ 9 - 0
modules/Pisg/Parser/Format/xchat.pm

@@ -84,6 +84,15 @@ sub thirdline
 
         } elsif (($5.$6) eq 'nowknown') {
             $hash{newnick} = $8;
+
+        } elsif (($3.$4.$6) eq 'Topicforis') {
+            $self->{topictemp} = $9;
+            $hash{newtopic} = $9;
+
+        } elsif (($3.$4.$6) eq 'Topicforset') {
+            $hash{nick} = $8;
+            $hash{newtopic} =  $self->{topictemp};
+
         }
 
         return \%hash;