Explorar el Código

Grab topic on join

sbingner hace 24 años
padre
commit
2e2c761ffc
Se han modificado 1 ficheros con 9 adiciones y 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;