]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/log
user/henk/code/ruby/rbot.git
16 years agohttputil: primitve cookie support
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

16 years agoMore rdoc-ification
Giuseppe Bilotta [Thu, 13 Sep 2007 08:22:30 +0000 (08:22 +0000)]
More rdoc-ification

16 years agomore rdoc-ification
Giuseppe Bilotta [Thu, 13 Sep 2007 00:14:53 +0000 (00:14 +0000)]
more rdoc-ification

16 years agonamespaces: simplify Irc::Bot::Auth manager singleton name and accessor
Giuseppe Bilotta [Thu, 13 Sep 2007 00:14:49 +0000 (00:14 +0000)]
namespaces: simplify Irc::Bot::Auth manager singleton name and accessor

16 years agonamespaces: provide backwards compatibility methods for BotConfig.register and relate...
Giuseppe Bilotta [Wed, 12 Sep 2007 22:31:18 +0000 (22:31 +0000)]
namespaces: provide backwards compatibility methods for BotConfig.register and related classes

16 years agonamespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::*
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::*

16 years agoIrc::IrcSocket -> Irc::Socket
Giuseppe Bilotta [Wed, 12 Sep 2007 19:17:24 +0000 (19:17 +0000)]
Irc::IrcSocket -> Irc::Socket

16 years agordocument Irc::MessageMapper and Irc::MessageTemplate
Giuseppe Bilotta [Wed, 12 Sep 2007 17:31:04 +0000 (17:31 +0000)]
rdocument Irc::MessageMapper and Irc::MessageTemplate

16 years agordocument Irc::Plugins::BotModule
Giuseppe Bilotta [Wed, 12 Sep 2007 17:31:03 +0000 (17:31 +0000)]
rdocument Irc::Plugins::BotModule

16 years ago* (plugins/fish,translator) long-running actions made threaded to avoid blocking
Dmitry Kim [Tue, 11 Sep 2007 17:38:23 +0000 (17:38 +0000)]
* (plugins/fish,translator) long-running actions made threaded to avoid blocking

16 years ago+ (plugins) :thread option for plugin.map makes an action automatically threaded
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

16 years agoUpdate REQUIREMENTS
Giuseppe Bilotta [Tue, 11 Sep 2007 11:22:41 +0000 (11:22 +0000)]
Update REQUIREMENTS

16 years agotranslator plugin: catch all exceptions when trying to initialize translators
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

16 years agofirst_html_par: only initialize element collections once
Giuseppe Bilotta [Tue, 11 Sep 2007 08:58:40 +0000 (08:58 +0000)]
first_html_par: only initialize element collections once

16 years agofirst_html_par: use hpricot if available
Giuseppe Bilotta [Tue, 11 Sep 2007 08:58:38 +0000 (08:58 +0000)]
first_html_par: use hpricot if available

16 years agoRequirements: document 'htmlentities' dependency-with-fallback
Giuseppe Bilotta [Tue, 11 Sep 2007 05:53:51 +0000 (05:53 +0000)]
Requirements: document 'htmlentities' dependency-with-fallback

16 years agourl plugin: add 'urls info *urls' command to force link info retrieval
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

16 years agourl plugin: loopback is 127.x.x.x, not just 127.0.0.1
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

16 years agourl plugin: add list of hosts for which no link info should be retrieved
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.

16 years agorss plugin: support older version of the Ruby RSS parser
Giuseppe Bilotta [Sun, 9 Sep 2007 06:45:00 +0000 (06:45 +0000)]
rss plugin: support older version of the Ruby RSS parser

16 years agofortune plugin: add header
Giuseppe Bilotta [Sun, 9 Sep 2007 06:44:59 +0000 (06:44 +0000)]
fortune plugin: add header

16 years agofortune plugin: suppress warning and make source more readable
Giuseppe Bilotta [Sun, 9 Sep 2007 06:44:57 +0000 (06:44 +0000)]
fortune plugin: suppress warning and make source more readable

16 years agoHttpUtil: preserve authorization across redirects
Giuseppe Bilotta [Sat, 8 Sep 2007 17:14:54 +0000 (17:14 +0000)]
HttpUtil: preserve authorization across redirects

16 years agoSome new fortune features:
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

16 years agolastfm plugin: thread, don't block
Giuseppe Bilotta [Tue, 4 Sep 2007 10:25:12 +0000 (10:25 +0000)]
lastfm plugin: thread, don't block

16 years agolastfm plugin: fix help with empty topic
Giuseppe Bilotta [Tue, 4 Sep 2007 10:25:10 +0000 (10:25 +0000)]
lastfm plugin: fix help with empty topic

16 years agolastfm plugin: support redirected location searches
Giuseppe Bilotta [Tue, 4 Sep 2007 09:58:12 +0000 (09:58 +0000)]
lastfm plugin: support redirected location searches

16 years agoNew Irc Framework: Irc::User#bot_data(key) and #set_bot_data(key, value, &block)...
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

16 years agoNew Auth Framework: dream about auto-notifying hashes, and use #replace() when loadin...
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

16 years agoNew Auth Framework: BotUser data is now actually saved/restored
Giuseppe Bilotta [Tue, 4 Sep 2007 01:50:38 +0000 (01:50 +0000)]
New Auth Framework: BotUser data is now actually saved/restored

16 years agoNew Auth Framework, New Irc Framework: convenience methods for Irc::User to retrieve...
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

16 years agoNew Auth Framework: BotUser can now store generic data
Giuseppe Bilotta [Tue, 4 Sep 2007 01:50:33 +0000 (01:50 +0000)]
New Auth Framework: BotUser can now store generic data

16 years agoNew Auth Framework: BotUser transiency is now checked with #transient?
Giuseppe Bilotta [Tue, 4 Sep 2007 01:50:32 +0000 (01:50 +0000)]
New Auth Framework: BotUser transiency is now checked with #transient?

16 years agoNew Auth Framework: transient netmask finetuning
Giuseppe Bilotta [Tue, 4 Sep 2007 01:50:30 +0000 (01:50 +0000)]
New Auth Framework: transient netmask finetuning

16 years agoNew Auth Framework: no need to have TransientBotUser as a separate class
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

16 years agoNew Auth Framework: use #to_irc_netmask() instead of Netmask.new()
Giuseppe Bilotta [Tue, 4 Sep 2007 01:50:27 +0000 (01:50 +0000)]
New Auth Framework: use #to_irc_netmask() instead of Netmask.new()

16 years agoNew Irc Framework: Netmask-to-Netmask conversion should offer a default server and...
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

16 years agoNew Irc Framework: ident methods synonyms for user for Irc::Netmask
Giuseppe Bilotta [Tue, 4 Sep 2007 01:50:24 +0000 (01:50 +0000)]
New Irc Framework: ident methods synonyms for user for Irc::Netmask

16 years agoNew Auth Framework: TransientBotUser management
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.

16 years agoNew Irc Framework: make Netmask.new(somenetmask) work
Giuseppe Bilotta [Sun, 2 Sep 2007 17:17:38 +0000 (17:17 +0000)]
New Irc Framework: make Netmask.new(somenetmask) work

16 years agoNew Auth Framework: introducing transient botusers
Giuseppe Bilotta [Sun, 2 Sep 2007 17:17:35 +0000 (17:17 +0000)]
New Auth Framework: introducing transient botusers

16 years agomessage.rb: convenience method to get the botuser corresponding the message source
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

16 years agoregistry.rb: suppress warning when @recovery is not defined
Giuseppe Bilotta [Sun, 2 Sep 2007 10:10:10 +0000 (10:10 +0000)]
registry.rb: suppress warning when @recovery is not defined

16 years agoplugins.rb: use fast delegation hash
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).

16 years agoircbot.rb: correct Exception#pretty_print() definition
Giuseppe Bilotta [Sun, 2 Sep 2007 09:30:11 +0000 (09:30 +0000)]
ircbot.rb: correct Exception#pretty_print() definition

16 years agoplugins.rb: set up fast delegation hash
Giuseppe Bilotta [Sun, 2 Sep 2007 09:30:08 +0000 (09:30 +0000)]
plugins.rb: set up fast delegation hash

Delegating a message requires checking if each of the loaded plugins
responds to a given method. This can be time consuming when many
plugins are loaded.

We set up a hash that maps each commonly delegated method to the list of
plugins that respond to it.

16 years agoplugins.rb: minor #delegate() optimization
Giuseppe Bilotta [Sun, 2 Sep 2007 09:30:06 +0000 (09:30 +0000)]
plugins.rb: minor #delegate() optimization

16 years agoircbot.rb: add '/rbot' to the SOURCE_URL
Giuseppe Bilotta [Sun, 2 Sep 2007 07:16:36 +0000 (07:16 +0000)]
ircbot.rb: add '/rbot' to the SOURCE_URL

16 years agoconfig botmodule: support CTCP commands VERSION and SOURCE
Giuseppe Bilotta [Sun, 2 Sep 2007 07:16:33 +0000 (07:16 +0000)]
config botmodule: support CTCP commands VERSION and SOURCE

16 years agoRefactor version string construction
Giuseppe Bilotta [Sun, 2 Sep 2007 07:16:28 +0000 (07:16 +0000)]
Refactor version string construction

16 years ago* move 'version' help to the module that actually supports the command
Giuseppe Bilotta [Sun, 2 Sep 2007 07:16:24 +0000 (07:16 +0000)]
* move 'version' help to the module that actually supports the command

16 years ago* CTCP replies always use the same CTCP command. Use the new syntax to reply to CTCP...
Giuseppe Bilotta [Sun, 2 Sep 2007 07:16:22 +0000 (07:16 +0000)]
* CTCP replies always use the same CTCP command. Use the new syntax to reply to CTCP PING and TIME commands in basics

16 years ago+ ctcp_listen plugin delegate
Giuseppe Bilotta [Sun, 2 Sep 2007 07:16:17 +0000 (07:16 +0000)]
+ ctcp_listen plugin delegate

16 years ago* (message.rb) CTCP commands may have no parameters
Giuseppe Bilotta [Sun, 2 Sep 2007 07:16:12 +0000 (07:16 +0000)]
* (message.rb) CTCP commands may have no parameters

16 years ago+ cleaner support for CTCP commands
Giuseppe Bilotta [Sun, 2 Sep 2007 07:16:10 +0000 (07:16 +0000)]
+ cleaner support for CTCP commands

16 years agobotuser.rb: fix typo in debug message
Giuseppe Bilotta [Sun, 2 Sep 2007 07:16:04 +0000 (07:16 +0000)]
botuser.rb: fix typo in debug message

16 years ago* (ircsocket) removed timer, added writer thread, refactored writer logic a bit
Dmitry Kim [Sat, 1 Sep 2007 10:48:44 +0000 (10:48 +0000)]
* (ircsocket) removed timer, added writer thread, refactored writer logic a bit

16 years ago* (plugins/grouphug) thread, don't block (tm)
Dmitry Kim [Fri, 31 Aug 2007 23:59:02 +0000 (23:59 +0000)]
* (plugins/grouphug) thread, don't block (tm)

16 years ago* (timer) stop the bot timer for shutdown / rescan
Dmitry Kim [Fri, 31 Aug 2007 00:12:22 +0000 (00:12 +0000)]
* (timer) stop the bot timer for shutdown / rescan

16 years agorss plugin: don't care if reschedule fails
Giuseppe Bilotta [Thu, 30 Aug 2007 22:49:05 +0000 (22:49 +0000)]
rss plugin: don't care if reschedule fails

A feed watcher may fail to reschedule, for example if it was stopped
before completion. Fail graciously warning the user.

16 years agoUpdated chucknorris file
Chris Gahan [Thu, 30 Aug 2007 22:35:58 +0000 (22:35 +0000)]
Updated chucknorris file

16 years ago* (delicious) typo fixed
Dmitry Kim [Thu, 30 Aug 2007 20:37:01 +0000 (20:37 +0000)]
* (delicious) typo fixed

16 years ago* (message.rb) dear tango_! i think i know what r1073 was. here's my version.
Dmitry Kim [Thu, 30 Aug 2007 20:02:17 +0000 (20:02 +0000)]
* (message.rb) dear tango_! i think i know what r1073 was. here's my version.

16 years ago* (timers) failures made more verbose; reverted timer.block()s in ircbot.rb
Dmitry Kim [Thu, 30 Aug 2007 19:35:23 +0000 (19:35 +0000)]
* (timers) failures made more verbose; reverted timer.block()s in ircbot.rb

16 years ago!!! (message.rb) dear tango_! i have no idea what r1073 is! -jsn.
Dmitry Kim [Thu, 30 Aug 2007 18:31:24 +0000 (18:31 +0000)]
!!! (message.rb) dear tango_! i have no idea what r1073 is! -jsn.

16 years ago* (ircbot) block autosave timer during rescan/restart
Dmitry Kim [Thu, 30 Aug 2007 18:16:19 +0000 (18:16 +0000)]
* (ircbot) block autosave timer during rescan/restart

16 years agocore/config: remove leftover heavy-load debug line
Giuseppe Bilotta [Thu, 30 Aug 2007 17:41:04 +0000 (17:41 +0000)]
core/config: remove leftover heavy-load debug line

16 years agodbhash.rb: fix stupid typo
Giuseppe Bilotta [Thu, 30 Aug 2007 16:47:40 +0000 (16:47 +0000)]
dbhash.rb: fix stupid typo

16 years agomessage.rb: try to handle situations where the source isn't an Irc::User
Giuseppe Bilotta [Thu, 30 Aug 2007 16:47:38 +0000 (16:47 +0000)]
message.rb: try to handle situations where the source isn't an Irc::User

16 years ago+ (timer) comments + documentation
Dmitry Kim [Thu, 30 Aug 2007 11:25:23 +0000 (11:25 +0000)]
+ (timer) comments + documentation

16 years ago*** (timer) new timer implementation
Dmitry Kim [Thu, 30 Aug 2007 09:12:56 +0000 (09:12 +0000)]
*** (timer) new timer implementation

16 years ago* (httputil) increased open_timeout to 20 since resolving still takes a while
Dmitry Kim [Wed, 29 Aug 2007 23:57:24 +0000 (23:57 +0000)]
* (httputil) increased open_timeout to 20 since resolving still takes a while

16 years ago+ (locale) marked generated data/locale as svn:ignore-d
Dmitry Kim [Wed, 29 Aug 2007 23:53:55 +0000 (23:53 +0000)]
+ (locale) marked generated data/locale as svn:ignore-d

16 years ago+ (delicious) interface to post private links / skip logging for a link. help message...
Dmitry Kim [Wed, 29 Aug 2007 21:34:12 +0000 (21:34 +0000)]
+ (delicious) interface to post private links / skip logging for a link. help message improved.

16 years ago+ (delicios.rb) support user-supplied tags for del.icio.us logging
Dmitry Kim [Wed, 29 Aug 2007 21:07:06 +0000 (21:07 +0000)]
+ (delicios.rb) support user-supplied tags for del.icio.us logging

16 years ago* (url.rb) pass original irc message to url logger
Dmitry Kim [Wed, 29 Aug 2007 21:06:29 +0000 (21:06 +0000)]
* (url.rb) pass original irc message to url logger

16 years agowow plugin: thread, don't block
Giuseppe Bilotta [Wed, 29 Aug 2007 20:55:35 +0000 (20:55 +0000)]
wow plugin: thread, don't block

16 years agoforecast plugin: thread, don't block
Giuseppe Bilotta [Wed, 29 Aug 2007 20:55:33 +0000 (20:55 +0000)]
forecast plugin: thread, don't block

16 years agoPut the Irc attributes back where they belong
Giuseppe Bilotta [Wed, 29 Aug 2007 20:39:15 +0000 (20:39 +0000)]
Put the Irc attributes back where they belong

16 years agoColor codes and Irc.color(fg, bg) methods to ease color display
Giuseppe Bilotta [Wed, 29 Aug 2007 19:48:18 +0000 (19:48 +0000)]
Color codes and Irc.color(fg, bg) methods to ease color display

16 years agoColorRx: accept a color specification with no foreground color
Giuseppe Bilotta [Wed, 29 Aug 2007 19:48:16 +0000 (19:48 +0000)]
ColorRx: accept a color specification with no foreground color

16 years agoAdd Italic (\011) constant to complement Underline, Reverse and Bold
Giuseppe Bilotta [Wed, 29 Aug 2007 19:48:15 +0000 (19:48 +0000)]
Add Italic (\011) constant to complement Underline, Reverse and Bold

16 years agoHttpUtil: match /gzip/ regexp instead of exact (x-)gzip to survive nonconformat headers.
Giuseppe Bilotta [Wed, 29 Aug 2007 17:39:19 +0000 (17:39 +0000)]
HttpUtil: match /gzip/ regexp instead of exact (x-)gzip to survive nonconformat headers.

16 years agoFlatten out Language module and class
Giuseppe Bilotta [Wed, 29 Aug 2007 15:37:47 +0000 (15:37 +0000)]
Flatten out Language module and class

16 years agodebugger plugin: fix computation of memory occupation differences.
Giuseppe Bilotta [Wed, 29 Aug 2007 12:00:54 +0000 (12:00 +0000)]
debugger plugin: fix computation of memory occupation differences.

16 years agotimers: get rid of useless data passing to timer actions.
Giuseppe Bilotta [Wed, 29 Aug 2007 10:46:14 +0000 (10:46 +0000)]
timers: get rid of useless data passing to timer actions.

The timer blocks are closures, so they inherit the variables in the scope they were created. Passing those same variables to the block as data is useless.

16 years agobasics botmodule: use #to_s to stringify multiword parameters
Giuseppe Bilotta [Tue, 28 Aug 2007 17:11:46 +0000 (17:11 +0000)]
basics botmodule: use #to_s to stringify multiword parameters

16 years agoircbot: improve quit/restart message propagation
Giuseppe Bilotta [Tue, 28 Aug 2007 17:11:39 +0000 (17:11 +0000)]
ircbot: improve quit/restart message propagation

16 years agoircsocket: raise errors occurred while spooling so that bot is aware of them
Giuseppe Bilotta [Tue, 28 Aug 2007 12:37:28 +0000 (12:37 +0000)]
ircsocket: raise errors occurred while spooling so that bot is aware of them

16 years agolart plugin: ensure that the lart/praise being added/removed is a string
Giuseppe Bilotta [Tue, 28 Aug 2007 12:20:32 +0000 (12:20 +0000)]
lart plugin: ensure that the lart/praise being added/removed is a string

16 years agogit/svn: check if our git rev corresponds to some svn rev
Giuseppe Bilotta [Tue, 28 Aug 2007 11:47:25 +0000 (11:47 +0000)]
git/svn: check if our git rev corresponds to some svn rev

16 years agorss plugin: fix watcher rescheduling broken in previous commit
Giuseppe Bilotta [Tue, 28 Aug 2007 10:58:59 +0000 (10:58 +0000)]
rss plugin: fix watcher rescheduling broken in previous commit

16 years agorss plugin: prevent deadlock between save and watcher threads.
Giuseppe Bilotta [Mon, 27 Aug 2007 22:51:42 +0000 (22:51 +0000)]
rss plugin: prevent deadlock between save and watcher threads.

Since the timer fix in [1035], rescheduling ticks the timer, which could cause the timed saving to trigger while a feed mutex was being held. Fix by moving the feed watcher rescheduling out of the mutex synchronization.

Also move other calculations out to hold the mutex for as little as necessary.

16 years agoGetText: add Config.datadir-based locale search path.
Giuseppe Bilotta [Mon, 27 Aug 2007 22:16:10 +0000 (22:16 +0000)]
GetText: add Config.datadir-based locale search path.

This ensures that locale files are found regardless of rubygems being loaded or not

16 years agoLanguage.from_locale now checks if the corresponding .lang file exist before returnin...
Giuseppe Bilotta [Mon, 27 Aug 2007 21:47:35 +0000 (21:47 +0000)]
Language.from_locale now checks if the corresponding .lang file exist before returning a language string

16 years agorss plugin: uncoditionally renew the feed mutexes
Giuseppe Bilotta [Mon, 27 Aug 2007 20:17:58 +0000 (20:17 +0000)]
rss plugin: uncoditionally renew the feed mutexes

16 years agoCall 'super' from the correct place in httputil
Giuseppe Bilotta [Mon, 27 Aug 2007 20:17:56 +0000 (20:17 +0000)]
Call 'super' from the correct place in httputil

16 years agoShow the git version differently
Giuseppe Bilotta [Mon, 27 Aug 2007 01:41:31 +0000 (01:41 +0000)]
Show the git version differently

16 years agoWhen running from a git repository, expose the current git revision
Giuseppe Bilotta [Mon, 27 Aug 2007 01:41:30 +0000 (01:41 +0000)]
When running from a git repository, expose the current git revision

16 years agoCheck if the SVN_DIR is actually a git dir, and change accordingly
Giuseppe Bilotta [Mon, 27 Aug 2007 01:41:29 +0000 (01:41 +0000)]
Check if the SVN_DIR is actually a git dir, and change  accordingly