summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/url.rb
AgeCommit message (Collapse)Author
2023-09-25fix: TCPSocked.gethostbyname is deprecatedHEADmainHendrik Jäger
2023-09-24fix: URI.escape is not needed anymoreHendrik Jäger
2013-12-06url: more flexibility with first_parMatthias H
2010-07-01url: Add a config option to auto-shorten URLs.David Gadling
shortenurls: Add a favorite service config option. Auto-shortening URLs is mutually exclusive with showing information about them as the output would be very confusing. The favorite shortenting service option only really applies when other plugins call shortenurls.shorten, so they don't have to hard-code which shortening service to use.
2009-08-30url plugin: carry htmlinfo filtering output with the url_added eventGiuseppe Bilotta
2009-08-27url plugin: only chop non-word characters on 404Giuseppe Bilotta
Chopping everything causes long delays for non-existing pages with long paths. Since the purpose of the retry-with-chop is to get the right URL when punctuation is added after it, the solution is to only chop non-word characters. This has to be done on the unescaped URL because otherwise non-word characters like " that expand to %22 will not be chopped.
2009-03-15url: load filters, defaulting to the htmlinfo filter groupGiuseppe Bilotta
2009-03-10url: allow ignoring urls from specific usersRaine Virta
2009-02-23url: Only reply with disabled host message when url info directly requested.Spencer Rinehart
2009-01-27url plugin: urls info should work regardless of configGiuseppe Bilotta
The 'urls info' command to manually query for link information should always work, regardless of the setting of the url.only_on_channels config setting. Fix by making the channels list for handle_urls() into an option (defaulting to url.only_on_channels) and passing an empty list from info().
2009-01-27url plugin: option hash for handle_urls()Giuseppe Bilotta
Turn handle_urls() options (other than the message) into a parameter hash.
2009-01-22+ (reply) config option to force reply to querySimon Hafner
+ (reply) symbol to bypass the config option * (plugins) fixed url according to the patch The symbols are: :to => :public force the message to be replied in channel (if any) :to => :private force the message to be replied in private :to => :auto takes core.private_replies (default)
2009-01-22* (plugins) changed to the new reply schema (:nick)Simon Hafner
2008-12-31url plugin: added a config option for displaying link info only on specific ↵Raine Virta
channels
2008-10-27url plugin: only handle URls that have something past the protocolGiuseppe Bilotta
2008-04-07+ use the message() delegate instead of listen() when possibleGiuseppe Bilotta
2008-03-17filters: HTML info extraction is now a filterGiuseppe Bilotta
2008-03-10url plugin: retry with chops even on URI::InvalidURIErrorGiuseppe Bilotta
2008-02-13url plugin: output link info with m.plainreplyGiuseppe Bilotta
Link info should be directed to the whole channel, not only the user that triggered it; use m.plainreply instead of m.reply so that core.reply_with_nick = true is ignored.
2008-02-13url plugin: strip final characters from URL when we get 404, in case it was ↵Giuseppe Bilotta
due to trailing punctuation
2008-01-20url plugin: check the canonical name, the IP address, and any known aliases ↵Giuseppe Bilotta
against no_info_hosts
2007-09-21* (plugins/url) url.display_link_info now also applies for error messagesDmitry Kim
2007-09-19url plugin: bail out early when no urls were foundGiuseppe Bilotta
2007-09-19url plugin: only extract URIs for the schemes we're interested in (http[s])Giuseppe Bilotta
2007-09-18HTML processing refactoring: url plugin: only add encoding and size ↵Giuseppe Bilotta
information to pages with title if url.first_par is true
2007-09-18HTML processing refactoring: Utils.get_html_info and related methods ↵Giuseppe Bilotta
factored out of the url plugin
2007-09-18HTML processing refactoring: HTML title extraction is now a String methodGiuseppe Bilotta
2007-09-16* (plugins/url) url logging should not depend on url info displayDmitry Kim
2007-09-16* (plugins/url) get_title_for_url(uri_str, opts={})Dmitry Kim
2007-09-16url plugin: add 'url info' as a synonym for 'urls info', and document the ↵Giuseppe Bilotta
command
2007-09-12namespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::*Giuseppe Bilotta
2007-09-10url plugin: add 'urls info *urls' command to force link info retrievalGiuseppe Bilotta
2007-09-10url plugin: loopback is 127.x.x.x, not just 127.0.0.1Giuseppe Bilotta
2007-09-10url plugin: add list of hosts for which no link info should be retrievedGiuseppe Bilotta
The url plugin would display link info for urls such as http://127.0.0.1:631/printers and other private addresses, thus being a potential security threat. Disable info retrieval for these hosts, and make the host list configurable.
2007-08-29* (url.rb) pass original irc message to url loggerDmitry Kim
2007-08-23url plugin: url.display_link_info is now an Integer: the number of links in ↵Giuseppe Bilotta
a line for which info should be displayed
2007-08-23url plugin: escape stuff before extracting urlsGiuseppe Bilotta
2007-08-23url plugin: only consider http(s) urls found by URI.extract()Giuseppe Bilotta
2007-08-22url plugin: jump to fragment when grabbing first par of an url with fragmentGiuseppe Bilotta
2007-08-22url plugin: use URI.extract to get urls in a message. Ensures links are ↵Giuseppe Bilotta
properly grabbed, and grabs multiple urls in a line
2007-08-05* (plugins/url.rb) apply URI.escape to make non-rfc charsets in uri useableDmitry Kim
2007-05-11+ (plugins/delicious) automatic url logging to del.icio.us (alpha)Dmitry Kim
+ (plugins/url) logging hook / event
2007-04-24* (plugins/url) don't download (and don't cache) non-text urlsDmitry Kim
2007-04-15HttpUtil: fix gunzipping with partial content; and debug response in url ↵Giuseppe Bilotta
plugin earlier
2007-04-14url plugin: return nil when we return nothingGiuseppe Bilotta
2007-04-12Module\#define_structure method: define a new Struct only if doesn't exist ↵Giuseppe Bilotta
already or if the attribute list changed
2007-04-12url plugin: search for user-provided string in urls info too; and truly ↵Giuseppe Bilotta
update url info when it wasn't present before
2007-04-12url plugin: store info with urls, optionally display it when listing or ↵Giuseppe Bilotta
searching for urls
2007-04-11HttpUtil: decompress gzipped body in partial_body too; whitespace cleanup tooGiuseppe Bilotta
2007-04-11url plugin: revert to block get_response and partial_body to work around ↵Giuseppe Bilotta
sites which return 400 on partial content