]>
git.netwichtig.de Git - user/henk/code/ruby/rbot.git/log
Giuseppe Bilotta [Thu, 20 Sep 2007 13:49:16 +0000 (13:49 +0000)]
reaction plugin: missing \! in string-to-chance conversion
Giuseppe Bilotta [Thu, 20 Sep 2007 13:49:15 +0000 (13:49 +0000)]
reaction plugin: author/date/channel information are reply, not trigger specific. Add command to show them
Giuseppe Bilotta [Thu, 20 Sep 2007 13:49:13 +0000 (13:49 +0000)]
reaction plugin: triggers can have multiple reactions, each with a different percentage
If the sum of all the percentages is less than 1, then there is chance that nothing
will be replied. Otherwise, the percentage is just the relative chance that each
reply will be selected.
Giuseppe Bilotta [Wed, 19 Sep 2007 21:19:46 +0000 (21:19 +0000)]
url plugin: bail out early when no urls were found
Giuseppe Bilotta [Wed, 19 Sep 2007 21:19:45 +0000 (21:19 +0000)]
url plugin: only extract URIs for the schemes we're interested in (http[s])
Giuseppe Bilotta [Wed, 19 Sep 2007 20:45:41 +0000 (20:45 +0000)]
core: only WHO on join if it's the bot itself joining a channel
Giuseppe Bilotta [Wed, 19 Sep 2007 20:45:35 +0000 (20:45 +0000)]
reaction plugin: only react to unreplied messages
Giuseppe Bilotta [Wed, 19 Sep 2007 20:45:32 +0000 (20:45 +0000)]
reaction plugin: check for existing reaction when adding a new one
Giuseppe Bilotta [Wed, 19 Sep 2007 20:45:26 +0000 (20:45 +0000)]
reaction plugin: new add syntax
Giuseppe Bilotta [Wed, 19 Sep 2007 18:03:14 +0000 (18:03 +0000)]
reaction plugin: one-liner reply/reaction to in-channel messages/actions. Initial commit
Giuseppe Bilotta [Tue, 18 Sep 2007 23:40:46 +0000 (23:40 +0000)]
ircify_html: minimal support for li tags
Giuseppe Bilotta [Tue, 18 Sep 2007 23:40:44 +0000 (23:40 +0000)]
first_html_par: after-paragraph matches should prefer divs and spans to other elements
Giuseppe Bilotta [Tue, 18 Sep 2007 23:40:42 +0000 (23:40 +0000)]
first_html_par: make Hpricot handling more robust
Giuseppe Bilotta [Tue, 18 Sep 2007 17:31:29 +0000 (17:31 +0000)]
first_html_par: constify the 'after par' searches with Hpricot
Giuseppe Bilotta [Tue, 18 Sep 2007 17:31:28 +0000 (17:31 +0000)]
utils: require 'hpricot' the second time, not 'htmlentities' again
Giuseppe Bilotta [Tue, 18 Sep 2007 17:31:26 +0000 (17:31 +0000)]
first_html_par: it's doc.root.search, not doc.root.each
Giuseppe Bilotta [Tue, 18 Sep 2007 17:31:24 +0000 (17:31 +0000)]
first_html_par: build lists 'manually' when using Hpricot
Hpricot selectors (like doc/"css path") don't return elements in their natural (depth-first) order. Use custom searches from the root of the document to achieve this.
Giuseppe Bilotta [Tue, 18 Sep 2007 13:24:59 +0000 (13:24 +0000)]
HTML processing refactoring: remove obsolete comment
Giuseppe Bilotta [Tue, 18 Sep 2007 13:24:55 +0000 (13:24 +0000)]
extends: String#ircify_html now has an option to obey non-breakable spaces or turn them into normal spaces
This option is used e.g. by the dict plugin to reduce the excessive whitespace in oxford entries.
Giuseppe Bilotta [Tue, 18 Sep 2007 12:06:53 +0000 (12:06 +0000)]
dict plugin: echo oxford definitions
Giuseppe Bilotta [Tue, 18 Sep 2007 12:06:52 +0000 (12:06 +0000)]
dict plugin: oxford isn't british only anymore
Giuseppe Bilotta [Tue, 18 Sep 2007 12:06:50 +0000 (12:06 +0000)]
dict plugin: fix demauro word existence check
Giuseppe Bilotta [Tue, 18 Sep 2007 12:06:48 +0000 (12:06 +0000)]
dict plugin: demauro can actually have spaces in the leftmost part of the entry
Giuseppe Bilotta [Tue, 18 Sep 2007 11:05:01 +0000 (11:05 +0000)]
httputil: promote all Exceptions to RuntimeErrors so they can be caught with inline rescue
Giuseppe Bilotta [Tue, 18 Sep 2007 11:04:58 +0000 (11:04 +0000)]
Hpricot first par: it's el[:class], not el.class
Giuseppe Bilotta [Tue, 18 Sep 2007 07:05:48 +0000 (07:05 +0000)]
HTML processing refactoring: url plugin: only add encoding and size information to pages with title if url.first_par is true
Giuseppe Bilotta [Tue, 18 Sep 2007 06:15:56 +0000 (06:15 +0000)]
HTML processing refactoring: fix options passed by Utils.get_string_html_info to ircify_first_html_par
Giuseppe Bilotta [Tue, 18 Sep 2007 06:15:54 +0000 (06:15 +0000)]
HTML processing refactoring: Utils.get_first_pars now uses Utils.get_html_info
Giuseppe Bilotta [Tue, 18 Sep 2007 06:15:52 +0000 (06:15 +0000)]
basics: it's @bot.myself, not just myself
Giuseppe Bilotta [Tue, 18 Sep 2007 06:15:49 +0000 (06:15 +0000)]
HTML processing refactoring: Utils.get_html_info and related methods factored out of the url plugin
Giuseppe Bilotta [Tue, 18 Sep 2007 06:15:47 +0000 (06:15 +0000)]
HTML processing refactoring: ensure HTML title works with and without Hpricot
Giuseppe Bilotta [Tue, 18 Sep 2007 06:15:45 +0000 (06:15 +0000)]
HTML processing refactoring: HTML title extraction is now a String method
Giuseppe Bilotta [Mon, 17 Sep 2007 10:09:39 +0000 (10:09 +0000)]
registry: it's @recovery, not @recover
Giuseppe Bilotta [Mon, 17 Sep 2007 06:17:18 +0000 (06:17 +0000)]
shortenurls plugin: service name can be nil
Thus, convert it to sym after ||ing it with m.plugin, not before
Dmitry Kim [Sun, 16 Sep 2007 23:09:11 +0000 (23:09 +0000)]
* (plugins/url) url logging should not depend on url info display
Dmitry Kim [Sun, 16 Sep 2007 22:36:04 +0000 (22:36 +0000)]
* (plugins/url) get_title_for_url(uri_str, opts={})
Giuseppe Bilotta [Sun, 16 Sep 2007 12:54:08 +0000 (12:54 +0000)]
Update REQUIREMENTS
Giuseppe Bilotta [Sun, 16 Sep 2007 06:44:19 +0000 (06:44 +0000)]
url plugin: add 'url info' as a synonym for 'urls info', and document the command
Giuseppe Bilotta [Sun, 16 Sep 2007 06:44:17 +0000 (06:44 +0000)]
twitter plugin: set update source to 'rbot'
Since September 17 Twitter.com supports us as an 'official' client, and we can use 'rbot' as the source for updates coming from rbot.
Giuseppe Bilotta [Sat, 15 Sep 2007 22:25:22 +0000 (22:25 +0000)]
New Auth Framework: catch possible error when trying to create transient botuser
Giuseppe Bilotta [Sat, 15 Sep 2007 10:35:34 +0000 (10:35 +0000)]
rss plugin: add support for twitter format
Twitter feeds can use the generic output format, but there is no need to 'cap' their titles because of the hardcoded length limits imposed by Twitter
Giuseppe Bilotta [Sat, 15 Sep 2007 10:10:30 +0000 (10:10 +0000)]
twitter plugin: don't update status if message length is > 160 characters, and give a warning when > 140
Twitter has a hard limit for message lengths at 160, and the recommended maximum length is 140 characters, so enforce the hard limit and warn when the soft limit is passed
Giuseppe Bilotta [Sat, 15 Sep 2007 10:10:28 +0000 (10:10 +0000)]
twitter plugin: customize count of status updates displayed, defaulting to 1
Giuseppe Bilotta [Fri, 14 Sep 2007 22:51:07 +0000 (22:51 +0000)]
lastfm plugin: update to support the new HTML in author/band descriptions
Giuseppe Bilotta [Fri, 14 Sep 2007 22:14:06 +0000 (22:14 +0000)]
twitter plugin: minor refactoring
Giuseppe Bilotta [Fri, 14 Sep 2007 22:14:04 +0000 (22:14 +0000)]
twitter plugin: whitespace cleanup
Giuseppe Bilotta [Fri, 14 Sep 2007 22:14:02 +0000 (22:14 +0000)]
twitter plugin: identify ourselves as the twitter client
Giuseppe Bilotta [Fri, 14 Sep 2007 21:56:20 +0000 (21:56 +0000)]
twitter plugin: CGI.escape, not URI.escape (thanks hlb)
Giuseppe Bilotta [Fri, 14 Sep 2007 21:56:18 +0000 (21:56 +0000)]
twitter plugin: don't cache status
Giuseppe Bilotta [Fri, 14 Sep 2007 21:56:17 +0000 (21:56 +0000)]
twitter plugin: display time elapsed instead of date in status
Giuseppe Bilotta [Fri, 14 Sep 2007 21:56:15 +0000 (21:56 +0000)]
httputil: document 'headers' option to get_* methods
Giuseppe Bilotta [Fri, 14 Sep 2007 11:50:55 +0000 (11:50 +0000)]
twitter plugin: initial commit (#145 with changes)
Giuseppe Bilotta [Fri, 14 Sep 2007 11:50:51 +0000 (11:50 +0000)]
Update .po files
Giuseppe Bilotta [Fri, 14 Sep 2007 11:50:47 +0000 (11:50 +0000)]
config core botmodule: document 'nick', 'status'
Giuseppe Bilotta [Thu, 13 Sep 2007 21:47:52 +0000 (21:47 +0000)]
shortenurls plugin: shortenurls.services_blacklist config variable
Giuseppe Bilotta [Thu, 13 Sep 2007 21:47:50 +0000 (21:47 +0000)]
shortenurls plugin: handle failing services by trying other services, and make return values more uniform
Giuseppe Bilotta [Thu, 13 Sep 2007 13:25:51 +0000 (13:25 +0000)]
httputil: primitve cookie support
If a redirection sets a cookie, set the cookie in the redirected request
Giuseppe Bilotta [Thu, 13 Sep 2007 08:22:30 +0000 (08:22 +0000)]
More rdoc-ification
Giuseppe Bilotta [Thu, 13 Sep 2007 00:14:53 +0000 (00:14 +0000)]
more rdoc-ification
Giuseppe Bilotta [Thu, 13 Sep 2007 00:14:49 +0000 (00:14 +0000)]
namespaces: simplify Irc::Bot::Auth manager singleton name and accessor
Giuseppe Bilotta [Wed, 12 Sep 2007 22:31:18 +0000 (22:31 +0000)]
namespaces: provide backwards compatibility methods for BotConfig.register and related classes
Giuseppe Bilotta [Wed, 12 Sep 2007 22:31:15 +0000 (22:31 +0000)]
namespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::*
Giuseppe Bilotta [Wed, 12 Sep 2007 19:17:24 +0000 (19:17 +0000)]
Irc::IrcSocket -> Irc::Socket
Giuseppe Bilotta [Wed, 12 Sep 2007 17:31:04 +0000 (17:31 +0000)]
rdocument Irc::MessageMapper and Irc::MessageTemplate
Giuseppe Bilotta [Wed, 12 Sep 2007 17:31:03 +0000 (17:31 +0000)]
rdocument Irc::Plugins::BotModule
Dmitry Kim [Tue, 11 Sep 2007 17:38:23 +0000 (17:38 +0000)]
* (plugins/fish,translator) long-running actions made threaded to avoid blocking
Dmitry Kim [Tue, 11 Sep 2007 17:37:26 +0000 (17:37 +0000)]
+ (plugins) :thread option for plugin.map makes an action automatically threaded
* (plugins/*) converted to the new threading model
Giuseppe Bilotta [Tue, 11 Sep 2007 11:22:41 +0000 (11:22 +0000)]
Update REQUIREMENTS
Giuseppe Bilotta [Tue, 11 Sep 2007 11:22:40 +0000 (11:22 +0000)]
translator plugin: catch all exceptions when trying to initialize translators
The most significant exception that wasn't catched was LoadError, so that a failing require 'mechanize' would cause the whole plugin from failing to load, instead of just disabling the translators depending on WWW::Mechanize
Giuseppe Bilotta [Tue, 11 Sep 2007 08:58:40 +0000 (08:58 +0000)]
first_html_par: only initialize element collections once
Giuseppe Bilotta [Tue, 11 Sep 2007 08:58:38 +0000 (08:58 +0000)]
first_html_par: use hpricot if available
Giuseppe Bilotta [Tue, 11 Sep 2007 05:53:51 +0000 (05:53 +0000)]
Requirements: document 'htmlentities' dependency-with-fallback
Giuseppe Bilotta [Mon, 10 Sep 2007 12:37:36 +0000 (12:37 +0000)]
url plugin: add 'urls info *urls' command to force link info retrieval
Giuseppe Bilotta [Mon, 10 Sep 2007 09:39:47 +0000 (09:39 +0000)]
url plugin: loopback is 127.x.x.x, not just 127.0.0.1
Giuseppe Bilotta [Mon, 10 Sep 2007 09:36:29 +0000 (09:36 +0000)]
url plugin: add list of hosts for which no link info should be retrieved
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.
Giuseppe Bilotta [Sun, 9 Sep 2007 06:45:00 +0000 (06:45 +0000)]
rss plugin: support older version of the Ruby RSS parser
Giuseppe Bilotta [Sun, 9 Sep 2007 06:44:59 +0000 (06:44 +0000)]
fortune plugin: add header
Giuseppe Bilotta [Sun, 9 Sep 2007 06:44:57 +0000 (06:44 +0000)]
fortune plugin: suppress warning and make source more readable
Giuseppe Bilotta [Sat, 8 Sep 2007 17:14:54 +0000 (17:14 +0000)]
HttpUtil: preserve authorization across redirects
Chris Gahan [Wed, 5 Sep 2007 03:04:01 +0000 (03:04 +0000)]
Some new fortune features:
* Nicer merging of the lines into a single line
* Ability to list fortune files
* /usr/bin/fortune is the first place it looks now
Need to fix:
* Barfs when one of the potential executable paths is a directory
Giuseppe Bilotta [Tue, 4 Sep 2007 10:25:12 +0000 (10:25 +0000)]
lastfm plugin: thread, don't block
Giuseppe Bilotta [Tue, 4 Sep 2007 10:25:10 +0000 (10:25 +0000)]
lastfm plugin: fix help with empty topic
Giuseppe Bilotta [Tue, 4 Sep 2007 09:58:12 +0000 (09:58 +0000)]
lastfm plugin: support redirected location searches
Giuseppe Bilotta [Tue, 4 Sep 2007 01:50:42 +0000 (01:50 +0000)]
New Irc Framework: Irc::User#bot_data(key) and #set_bot_data(key, value, &block) to store bot-specific Irc::User data. Currently relies on the data structure in the associated BotUser
Giuseppe Bilotta [Tue, 4 Sep 2007 01:50:40 +0000 (01:50 +0000)]
New Auth Framework: dream about auto-notifying hashes, and use #replace() when loading data
Giuseppe Bilotta [Tue, 4 Sep 2007 01:50:38 +0000 (01:50 +0000)]
New Auth Framework: BotUser data is now actually saved/restored
Giuseppe Bilotta [Tue, 4 Sep 2007 01:50:37 +0000 (01:50 +0000)]
New Auth Framework, New Irc Framework: convenience methods for Irc::User to retrieve the associated BotUser and its data
Giuseppe Bilotta [Tue, 4 Sep 2007 01:50:33 +0000 (01:50 +0000)]
New Auth Framework: BotUser can now store generic data
Giuseppe Bilotta [Tue, 4 Sep 2007 01:50:32 +0000 (01:50 +0000)]
New Auth Framework: BotUser transiency is now checked with #transient?
Giuseppe Bilotta [Tue, 4 Sep 2007 01:50:30 +0000 (01:50 +0000)]
New Auth Framework: transient netmask finetuning
Giuseppe Bilotta [Tue, 4 Sep 2007 01:50:29 +0000 (01:50 +0000)]
New Auth Framework: no need to have TransientBotUser as a separate class
Giuseppe Bilotta [Tue, 4 Sep 2007 01:50:27 +0000 (01:50 +0000)]
New Auth Framework: use #to_irc_netmask() instead of Netmask.new()
Giuseppe Bilotta [Tue, 4 Sep 2007 01:50:26 +0000 (01:50 +0000)]
New Irc Framework: Netmask-to-Netmask conversion should offer a default server and casemap
Giuseppe Bilotta [Tue, 4 Sep 2007 01:50:24 +0000 (01:50 +0000)]
New Irc Framework: ident methods synonyms for user for Irc::Netmask
Giuseppe Bilotta [Sun, 2 Sep 2007 17:17:39 +0000 (17:17 +0000)]
New Auth Framework: TransientBotUser management
A TransientBotUser can only be created with an associated Irc::User or Irc::Netmask.
If an Irc::User cannot be logged in as a normal BotUser, TransitentBotUsers are tried.
Optionally, a TransientBotUser can be created automatically.
Giuseppe Bilotta [Sun, 2 Sep 2007 17:17:38 +0000 (17:17 +0000)]
New Irc Framework: make Netmask.new(somenetmask) work
Giuseppe Bilotta [Sun, 2 Sep 2007 17:17:35 +0000 (17:17 +0000)]
New Auth Framework: introducing transient botusers
Giuseppe Bilotta [Sun, 2 Sep 2007 15:41:24 +0000 (15:41 +0000)]
message.rb: convenience method to get the botuser corresponding the message source
Giuseppe Bilotta [Sun, 2 Sep 2007 10:10:10 +0000 (10:10 +0000)]
registry.rb: suppress warning when @recovery is not defined
Giuseppe Bilotta [Sun, 2 Sep 2007 09:30:13 +0000 (09:30 +0000)]
plugins.rb: use fast delegation hash
We delegate common hooks through the fast-delegation hash, and revert to
brute-force querying for everything else. Beware that this may breaks plugins
which add/remove delegatable methods at runtime, but no such plugin is
currently used (AFAIK).