Skip to content

Instantly share code, notes, and snippets.

@izabera
Created July 26, 2014 03:08
Show Gist options
  • Save izabera/df727a4a15602efee3b6 to your computer and use it in GitHub Desktop.
Save izabera/df727a4a15602efee3b6 to your computer and use it in GitHub Desktop.
kvirc get from pastebin.com
#OnChannelMessage
%string=$3
if ($str.contains($3,"http://pastebin.com/")) {
%string=$str.replace(%string,"http://pastebin.com/","http://pastebin.com/raw.php?i=")
http.asyncGet -e=o -w=h -i=$window (%string,$file.localdir(paste))
{
%string=$file.read($file.localdir(paste));
echo -w=$3 %string
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment