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

Add fix for pircbot format - had () brackets in 2 places that they havnt belonged since Rev 1.3

sbingner 23 лет назад
Родитель
Сommit
01da68914d
2 измененных файлов с 4 добавлено и 1 удалено
  1. 3 0
      docs/Changelog
  2. 1 1
      modules/Pisg/Parser/Format/pircbot.pm

+ 3 - 0
docs/Changelog

@@ -16,6 +16,9 @@ pisg (x.xx)
    * Fixed bug in hour tracking - Formats hours to 2 digits correctly now,
      previously was only forcing to 2 digit times if there was a time offset
      configured.  Fixes BugID#632883
+   * Fixed bug - shouldn't have been grabbing 2 parts of the pircbot string
+     to variables, was part of Rev 1.3 but apparently I forgot to actually put
+     in that part.  Thanks Marc Roberts for pointing this out. BugID#651485
 
 
 

+ 1 - 1
modules/Pisg/Parser/Format/pircbot.pm

@@ -15,7 +15,7 @@ sub new
         normalline => '^(\d+)\s:([^!]+)![^@]+@\S+\sPRIVMSG\s([#&+!]\S+)\s:([^' . $ctcpchr . '].*)$'
                       . '|' .
                       '^(\d+)\s(>>>)PRIVMSG\s([#&+!]\S+)\s:([^' . $ctcpchr . '].*)$',
-        actionline => '^(\d+)\s:([^!]+)!([^@]+)@(\S+)\sPRIVMSG\s([#&+!]\S+)\s:' . $ctcpchr . 'ACTION (.+)' . $ctcpchr . '\s*$'
+        actionline => '^(\d+)\s:([^!]+)![^@]+@\S+\sPRIVMSG\s([#&+!]\S+)\s:' . $ctcpchr . 'ACTION (.+)' . $ctcpchr . '\s*$'
                       . '|' . 
                       '^(\d+)\s(>>>)PRIVMSG\s([#&+!]\S+)\s:' . $ctcpchr . 'ACTION (.+)' . $ctcpchr . '\s*$',
 	thirdline  => '^(\d+)\s:([^!]+)![^@]+@\S+\s(.+)$'