From 2270485e8ffed1081f810d3352fd53d1b3ee2e6d Mon Sep 17 00:00:00 2001 From: Harvie Date: Sun, 29 Aug 2010 22:51:15 +0200 Subject: [PATCH] New answerscript for forwarding messages --- purple/answerscripts.d/00-forward.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 purple/answerscripts.d/00-forward.sh diff --git a/purple/answerscripts.d/00-forward.sh b/purple/answerscripts.d/00-forward.sh new file mode 100755 index 0000000..4ecad9f --- /dev/null +++ b/purple/answerscripts.d/00-forward.sh @@ -0,0 +1,6 @@ +#!/bin/sh +#This script will forward all incoming IM messages to someone else in network +FORWARD_PROTOCOL='irc'; +FORWARD_ACCOUNT='Harvie@irc.freenode.net'; +FORWARD_TO='hrv'; +purple-remote "$FORWARD_PROTOCOL:goim?account=$FORWARD_ACCOUNT&screenname=$FORWARD_TO&message=""$(echo "<$ANSW_PROTOCOL:$ANSW_FROM> $ANSW_MSG" | tr '&' ' ')" -- 2.30.2