From 8fec9e40198aff5b37e82907e914338e6f7b5e41 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sat, 13 Mar 2010 19:32:05 +0000 Subject: Initial revision --- pastebinit/build/pastebinit_pbc.diff | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pastebinit/build/pastebinit_pbc.diff (limited to 'pastebinit/build') diff --git a/pastebinit/build/pastebinit_pbc.diff b/pastebinit/build/pastebinit_pbc.diff new file mode 100644 index 00000000..8cc0f111 --- /dev/null +++ b/pastebinit/build/pastebinit_pbc.diff @@ -0,0 +1,27 @@ +--- /usr/bin/pastebinit.orig 2010-02-24 12:35:26.306735086 +0100 ++++ /usr/bin/pastebinit 2010-02-24 13:24:37.956760579 +0100 +@@ -53,16 +53,15 @@ + def getParameters(website, content, user, jabberid, version, format, parentpid, permatag, title, username, password): + "Return the parameters array for the selected pastebin" + params={} +- # pastebin.com v0.50 ++ # pastebin.com 2010-02-24 (new owner + API) + if (re.search("http://((([a-zA-Z0-9\-_\.]*)(pastebin\.com)))", website) and not website == "http://www.pastebin.com") or website == "http://pastebin.mozilla.org": +- params['poster'] = user +- params['code2'] = content +- params['version'] = version +- params['parent_pid'] = parentpid #For reply, "" means homepage (new thread) +- params['format'] = format #The format, for syntax hilighting +- params['paste'] = "Send" +- params['remember'] = "0" #Do you want a cookie ? +- params['expiry'] = "f" #The expiration, f = forever ++ params['page'] = "/api_public.php" ++ params['paste_name'] = user ++ params['paste_code'] = content ++ params['paste_format'] = format #The format, for syntax hilighting ++ params['paste_expire_date'] = "N" #The expiration, N = no expiry ++ params['submit'] = "submit" ++ params['regexp'] = '^http://.*pastebin.com/(.*)$' + elif re.search("http://((([a-zA-Z0-9\-_\.]*)(pastebin\.ca)))", website): + params['name'] = user + params['content'] = content -- cgit v1.2.3-65-gdbad