Torbjorn Svensson пре 19 година
родитељ
комит
9936249b04
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      modules/Pisg/Parser/Format/konversation.pm

+ 5 - 1
modules/Pisg/Parser/Format/konversation.pm

@@ -78,9 +78,13 @@ sub thirdline
 			$hash{newnick} =~ s/^.*\s+(\S+)$/$1/;
 			$hash{newnick} =~ s/^.*\s+(\S+)$/$1/;
 
 
 		} elsif ($3 eq 'Kick') {
 		} elsif ($3 eq 'Kick') {
-			if ($5 =~ /(\S+) from the channel \((.+)\).$/ ) {
+			if ($5 =~ /^have kicked (\S+) from the channel \((.+)\).$/ ) {
 				$hash{kicker} = $1;
 				$hash{kicker} = $1;
 				$hash{kicktext} = $2;
 				$hash{kicktext} = $2;
+			} elsif ($5 =~ /^has been kicked from the channel by (\S+) \((.+)\).$/ ) {
+				$hash{kicker} = $hash{nick};
+				$hash{nick} = $1;
+				$hash{kicktext} = $2;
 			} else {
 			} else {
 				return;
 				return;
 			}
 			}