瀏覽代碼

* Fixed problems with the mbot format where only the first word in a topic was shown

Morten Brix Pedersen 22 年之前
父節點
當前提交
9ceb767a7c
共有 3 個文件被更改,包括 5 次插入3 次删除
  1. 2 0
      docs/Changelog
  2. 1 2
      modules/Pisg/Parser/Format/mbot.pm
  3. 2 1
      pisg.cfg

+ 2 - 0
docs/Changelog

@@ -7,6 +7,8 @@ pisg (x.xx)
    * Added support for supybot logfiles,set format to 'supy'. (thanks, Jerome
    Kerdreux)
    * Fixed bug with uninitialised values in psybnc format.
+   * Fixed problems with the mbot format where only the first word in a topic
+   was shown.
    * Vision support wasn't being included with the tarball. Fixed.
 
 pisg (0.52) - Fri Feb, 13rd 2004

+ 1 - 2
modules/Pisg/Parser/Format/mbot.pm

@@ -69,8 +69,7 @@ sub thirdline
             $hash{nick} = $5;
 
         } elsif ($4 eq 'TOPIC') {
-            $hash{newtopic} = $5;
-            $hash{newtopic} =~ s/^.*://;
+            $hash{newtopic} = $5.$6.$7;
 
         } elsif ($4 eq 'MODE') {
             $hash{newmode} = $5;

+ 2 - 1
pisg.cfg

@@ -11,7 +11,8 @@
 # <set FoulWords="ass bitch fuck" Maintainer="SomeMaintainer">
 #
 <channel="#channel">
-   Logfile="../logsamples/bxlog-sample.log"
+   Logfile="../logsamples/mbot-sample.log"
+   Format="mbot"
    Network="SomeIRCNet"
    OutputFile="index.html"
 </channel>