Skip to content

Instantly share code, notes, and snippets.

@ryanfb
Created June 5, 2010 04:06
Show Gist options
  • Select an option

  • Save ryanfb/426288 to your computer and use it in GitHub Desktop.

Select an option

Save ryanfb/426288 to your computer and use it in GitHub Desktop.
diff --git a/lib/App/Alice/IRC.pm b/lib/App/Alice/IRC.pm
index e5b57a9..0b04a9e 100644
--- a/lib/App/Alice/IRC.pm
+++ b/lib/App/Alice/IRC.pm
@@ -591,7 +591,7 @@ sub nick_avatar {
return "http://www.gravatar.com/avatar/"
. md5_hex($email) . "?s=32&r=x";
}
- elsif ($info->{real} =~ /(https?:\/\/\S+(?:jpe?g|png|gif))/) {
+ elsif ($info->{real} =~ /(https?:\/\/\S+(?:jpe?g|png))/) {
return $1;
}
else {
@bkerley

bkerley commented Jun 5, 2010

Copy link
Copy Markdown

doesn't help, webkit will still render a gif named .jpg

@wsc

wsc commented Jun 6, 2010

Copy link
Copy Markdown

lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment