teeli / urltitle

Eggdrop scripts that display titles of URLs pasted on an IRC channel
MIT License
8 stars 10 forks source link

Add proper support for HTTP redirects #12

Closed dkfellows closed 7 years ago

dkfellows commented 7 years ago

HTTP redirect processing is tricky because Tcl doesn't provide support for it by default; it has to be layered on top. Fortunately, it's fairly easy to do this by a wrapper procedure (Fetch).

I've also fixed some bugs with variable scope resolution.

teeli commented 7 years ago

Hey, sorry it's taken me a while to check this out. Everything here looks reasonable to me. I'll run a few tests and merge if everything works (but nothing seems to jump out at me that would not work).