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

* Add half-op (+h) support to the xchat format (thanks, Jaff Har Har)

Morten Brix Pedersen 23 лет назад
Родитель
Сommit
2179d8c381
2 измененных файлов с 9 добавлено и 2 удалено
  1. 1 0
      docs/Changelog
  2. 8 2
      modules/Pisg/Parser/Format/xchat.pm

+ 1 - 0
docs/Changelog

@@ -9,6 +9,7 @@ pisg (x.xx)
      much smaller, thanks. You should overwrite your old png files with these
      new ones.
    * Distribute raw docbook (SGML) documentation (docs/pisg-doc.sgml)
+   * Add half-op (+h) support to the xchat format (thanks, Jaff Har Har)
 
 pisg (0.49) - Sun Sep, 14th 2003
    * Make the HTML output XHTML compliant again (thanks, Stian Jordet)

+ 8 - 2
modules/Pisg/Parser/Format/xchat.pm

@@ -73,12 +73,18 @@ sub thirdline
         } elsif (($4.$5) eq 'haschanged') {
             $hash{newtopic} = $9;
 
-        } elsif (($4.$5) eq 'giveschannel') {
+        } elsif (($4.$5.$6) eq 'giveschanneloperator') {
             $hash{newmode} = '+o';
 
-        } elsif (($4.$5) eq 'removeschannel') {
+        } elsif (($4.$5.$6) eq 'removeschanneloperator') {
             $hash{newmode} = '-o';
 
+        } elsif (($4.$5.$6) eq 'giveschannelhalf-operator') {
+            $hash{newmode} = '+h';
+
+        } elsif (($4.$5.$6) eq 'removeschannelhalf-operator') {
+            $hash{newmode} = '-h';
+
         } elsif (($4.$5) eq 'givesvoice') {
             $hash{newmode} = '+v';