]> Pileus Git - vpaste/blobdiff - vpaste
integrate spam check
[vpaste] / vpaste
diff --git a/vpaste b/vpaste
index 79cc6339e596ea88deb5dbf9b7dd889b16af4c0c..62a4c609e4c9e2341fb3e413173890c1ce43ab92 100755 (executable)
--- a/vpaste
+++ b/vpaste
@@ -1,9 +1,12 @@
 #!/bin/bash
-uri="http://andy753421.ath.cx/vpaste/"
-if [ "$1" ]; then
-       out=$(curl -F "x=<$1" "$uri")
+
+# Copyright (C) 2009 Andy Spencer - Public domain
+
+uri="http://vpaste.net/"
+if [ -f "$1" ]; then
+       out=$(curl -s -F "x=<$1" "$uri?$2")
 else
-       out=$(curl -F 'x=<-' "$uri")
+       out=$(curl -s -F 'x=<-' "$uri?$1")
 fi
 echo "$out"
 if [ -x "`which xclip 2>/dev/null`" -a "$DISPLAY" ]; then