teeli / urltitle

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

Outputs empty $urtitle variable to the IRC channel #14

Closed dereckhall closed 7 years ago

dereckhall commented 7 years ago

Hello,

If the script attempts to parse an imgur url (or similar photo etc url) where it is unable to scrape a title, it will output the empty variable to the channel:

Title: I added the following to check for an empty $urtitle if {$urtitle eq ""} { break } this is directly above: if {[string length $urtitle]} { puthelp "PRIVMSG $chan :title: $urtitle" } break } ------
teeli commented 7 years ago

Yeah, that makes sense. Could you maybe make a pull request?

dereckhall commented 7 years ago

done - pull sent.

teeli commented 7 years ago

Pull request now merged to master