]> git.99rst.org Git - irssi-scripts.irssi.org.git/commitdiff
update fix_slackirc to 0.3
authorAilin Nemui <redacted>
Tue, 16 Aug 2016 20:01:01 +0000 (22:01 +0200)
committerAilin Nemui <redacted>
Tue, 16 Aug 2016 20:01:01 +0000 (22:01 +0200)
* Improve fake host as to not confuse irssi on self msgs

scripts/fix_slackirc.pl

index f27981058fbf2b2640bd9b4d21327ed44cbeff64..b2856449e23f9c902ac1286d0ee58edf9fa111f9 100644 (file)
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '0.2'; # d8eac6db52159b2
+our $VERSION = '0.3'; # e43de0fd9100921
 our %IRSSI = (
     authors     => 'Nei',
     contact     => 'Nei @ anti@conference.jabber.teamidiot.de',
@@ -88,7 +88,7 @@ sub fix_incoming {
        $continue = 1;
     }
     # support self msgs
-    elsif ($raw =~ s/^:(?:(\S+)!(\S+\@$SLACK_ADDRESS)) PRIVMSG ([^#\s]\S*) :\[\3\] /:$3!$2 PRIVMSG $1 :/) {
+    elsif ($raw =~ s/^:(?:(\S+)!\S+(\@$SLACK_ADDRESS)) PRIVMSG ([^#\s]\S*) :\[\3\] /:$3!$3$2 PRIVMSG $1 :/) {
        $continue = 1;
     }
     if ($continue) {
git clone https://git.99rst.org/PROJECT