summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAilin Nemui2016-08-16 22:01:01 +0200
committerAilin Nemui2016-08-16 22:01:01 +0200
commitd23708418594f2e20d25b3afda804b671191fa93 (patch)
tree5eff345b65883f9294608b8aff7c162705761e18
parent57898805cb748d35e4fa9e159968401eaf05740d (diff)
downloadscripts.irssi.org-d23708418594f2e20d25b3afda804b671191fa93.tar.bz2
update fix_slackirc to 0.3
* Improve fake host as to not confuse irssi on self msgs
-rw-r--r--scripts/fix_slackirc.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/fix_slackirc.pl b/scripts/fix_slackirc.pl
index f279810..b285644 100644
--- a/scripts/fix_slackirc.pl
+++ b/scripts/fix_slackirc.pl
@@ -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) {