Просмотр исходного кода

Some fixes for eggdrop format where the nick was in nick!user@host
format

Morten Brix Pedersen 25 лет назад
Родитель
Сommit
8b224d5ece
2 измененных файлов с 5 добавлено и 0 удалено
  1. 2 0
      docs/Changelog
  2. 3 0
      modules/Pisg/Parser/Format/eggdrop.pm

+ 2 - 0
docs/Changelog

@@ -7,6 +7,8 @@ pisg (0.25)
      - show_randquote, disable/enable the showing of the random quotes
    * More flexibility to irssi logfile format, will now work with more irssi
      logfile configurations. (David Leadbeater)
+   * Some fixes for eggdrop format where the nick was in nick!user@host
+     format.
 
 pisg (0.24) - Mon, Sep 24th 2001
    * Logdirs not working, fixed.

+ 3 - 0
modules/Pisg/Parser/Format/eggdrop.pm

@@ -73,6 +73,7 @@ sub thirdline
 
         if (($4.$5) eq 'kickedfrom') {
             $7 =~ /^ by ([\S]+):.*/;
+            $1 =~ /([^!]+)/;    # Remove anything after the !
             $hash{kicker} = $1;
 
         } elsif ($3 eq 'Topic') {
@@ -100,6 +101,8 @@ sub thirdline
             $hash{repeated} = $6;
         }
 
+        $hash{nick} =~ /([^!]+)/;
+        $hash{nick} = $1;
         return \%hash;
 
     } else {