eventcmd.pastebin: add https and ftp support (suggested by Vic and M. Vuets)
--- 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)