ydal

pisg: patch to irssi parser for euIRC ‘admin’ user mode

As pisg is ill-equipped to handle sup­port for ‘admin’ users in the stan­dard con­fi­gu­ra­tion, I went on a quick code hunt to find the bit of code responsi­ble for strip­ping nick modes from a log line. A bit counter-intuitively, this func­tion is cal­led normalline, and not some­thing like normalize or strip_mode.

Anyhow, here’s a small patch to fix the pro­blem for the Irssi par­ser module:

--- modules/Pisg/Parser/Format/irssi.pm.old	2008-02-13 21:40:25.000000000 +0100
+++ modules/Pisg/Parser/Format/irssi.pm	2010-03-16 02:29:42.000000000 +0100
@@ -10,7 +10,7 @@
     my ($type, %args) = @_;
     my $self = {
         cfg => $args{cfg},
-        normalline => '^(\d+):\d+[^<*^!]+<[@%+~& ]?([^>]+)> (.*)',
+        normalline => '^(\d+):\d+[^<*^!]+<[@%+~&! ]?([^>]+)> (.*)',
         actionline => '^(\d+):\d+[^ ]+ +\* (\S+) (.*)',
         thirdline  => '^(\d+):(\d+)[^-]+-\!- (\S+) (\S+) (\S+) (\S+) (\S+)(.*)',
     };

Or you could just down­load the diff directly.

Categories

Werbung

Lifestream

  • Still need "send to other browser" functionality in Chrome. I want to be able to queue links to Windows software on my desktop Chrome. [towo]
  • Dinge, die dank kühler Positionierung des Plenarsaal des #c4h6a nicht mehr auffallen: Sommer. Merkt man erst bei offenem Fenster. [towo]
  • In meiner Inbox: eine Mail mit "Mal drum kümmern" als eigene Notiz vom Juli 2011. [towo]
  • Bisher hat übrigens kein Pressevertreter an falschen Stellen die Meinung eines Vortragenden als Clubmeinung dargestellt. Haters gonna hate. [towo]