From: Harvie Date: Sun, 29 Aug 2010 20:51:15 +0000 (+0200) Subject: New answerscript for forwarding messages X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=2270485e8ffed1081f810d3352fd53d1b3ee2e6d;p=mirrors%2Flibpurple-core-answerscripts.git New answerscript for forwarding messages --- 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 '&' ' ')"