shabble / irssi-scripts

Repo to store some personal irssi scripts
151 stars 24 forks source link

shortening for protocols other than http #9

Closed sm00th closed 13 years ago

sm00th commented 13 years ago

This patch fixes the issue with http:// being added to the beginning of urls with protocols other than http, such as https://, irc://, ftp://.

sm00th commented 13 years ago

Since tinyurl supports all kinds of protocols like news://, irc://, ftp://, we can(and need to) check if we need to add http:// with the part of a regexp that is used to find the url.