X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=purple%2Fanswerscripts.d%2F00-forward.sh;fp=purple%2Fanswerscripts.d%2F00-forward.sh;h=4ecad9fb4d2a2f284ea8f20e7072c9b618f1141b;hb=2270485e8ffed1081f810d3352fd53d1b3ee2e6d;hp=0000000000000000000000000000000000000000;hpb=37436d76884506099c4b02b50876da45dbfbf2a8;p=mirrors%2Flibpurple-core-answerscripts.git 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 '&' ' ')"