# HG changeset patch # User Mikael Berthe # Date 1222543297 -7200 # Node ID 6df03b9b17ba65a3cd2863d17e8bce8327ae3d24 # Parent 581d7bc8a404793a498428c8657ee30976061ad2 eventcmd.pastebin: add https and ftp support (suggested by Vic and M. Vuets) diff -r 581d7bc8a404 -r 6df03b9b17ba mcabber/contrib/events/eventcmd.pastebin --- a/mcabber/contrib/events/eventcmd.pastebin Sat Sep 27 21:14:17 2008 +0200 +++ b/mcabber/contrib/events/eventcmd.pastebin Sat Sep 27 21:21:37 2008 +0200 @@ -37,7 +37,7 @@ [ "$jid" == "$me" ] && exit 0 # If receiving a message, scan for links -url=$(cat "$4" | awk 'BEGIN { RS="( |\n|\t)+"; FS="¬"; } /http:\/\// { print $1 }') +url=$(cat "$4" | awk 'BEGIN { RS="( |\n|\t)+"; FS="¬"; } /(https?|ftp):\/\// { print $1 }') if [ -n "$url" ]; then date=$(/bin/date)