]>
git.netwichtig.de Git - user/henk/code/ruby/rbot.git/log
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).
Giuseppe Bilotta [Sun, 2 Sep 2007 09:30:11 +0000 (09:30 +0000)]
ircbot.rb: correct Exception#pretty_print() definition
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.
Giuseppe Bilotta [Sun, 2 Sep 2007 09:30:06 +0000 (09:30 +0000)]
plugins.rb: minor #delegate() optimization
Giuseppe Bilotta [Sun, 2 Sep 2007 07:16:36 +0000 (07:16 +0000)]
ircbot.rb: add '/rbot' to the SOURCE_URL
Giuseppe Bilotta [Sun, 2 Sep 2007 07:16:33 +0000 (07:16 +0000)]
config botmodule: support CTCP commands VERSION and SOURCE
Giuseppe Bilotta [Sun, 2 Sep 2007 07:16:28 +0000 (07:16 +0000)]
Refactor version string construction
Giuseppe Bilotta [Sun, 2 Sep 2007 07:16:24 +0000 (07:16 +0000)]
* move 'version' help to the module that actually supports the command
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
Giuseppe Bilotta [Sun, 2 Sep 2007 07:16:17 +0000 (07:16 +0000)]
+ ctcp_listen plugin delegate
Giuseppe Bilotta [Sun, 2 Sep 2007 07:16:12 +0000 (07:16 +0000)]
* (message.rb) CTCP commands may have no parameters
Giuseppe Bilotta [Sun, 2 Sep 2007 07:16:10 +0000 (07:16 +0000)]
+ cleaner support for CTCP commands
Giuseppe Bilotta [Sun, 2 Sep 2007 07:16:04 +0000 (07:16 +0000)]
botuser.rb: fix typo in debug message
Dmitry Kim [Sat, 1 Sep 2007 10:48:44 +0000 (10:48 +0000)]
* (ircsocket) removed timer, added writer thread, refactored writer logic a bit
Dmitry Kim [Fri, 31 Aug 2007 23:59:02 +0000 (23:59 +0000)]
* (plugins/grouphug) thread, don't block (tm)
Dmitry Kim [Fri, 31 Aug 2007 00:12:22 +0000 (00:12 +0000)]
* (timer) stop the bot timer for shutdown / rescan
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.
Chris Gahan [Thu, 30 Aug 2007 22:35:58 +0000 (22:35 +0000)]
Updated chucknorris file
Dmitry Kim [Thu, 30 Aug 2007 20:37:01 +0000 (20:37 +0000)]
* (delicious) typo fixed
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.
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
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.
Dmitry Kim [Thu, 30 Aug 2007 18:16:19 +0000 (18:16 +0000)]
* (ircbot) block autosave timer during rescan/restart
Giuseppe Bilotta [Thu, 30 Aug 2007 17:41:04 +0000 (17:41 +0000)]
core/config: remove leftover heavy-load debug line
Giuseppe Bilotta [Thu, 30 Aug 2007 16:47:40 +0000 (16:47 +0000)]
dbhash.rb: fix stupid typo
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
Dmitry Kim [Thu, 30 Aug 2007 11:25:23 +0000 (11:25 +0000)]
+ (timer) comments + documentation
Dmitry Kim [Thu, 30 Aug 2007 09:12:56 +0000 (09:12 +0000)]
*** (timer) new timer implementation
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
Dmitry Kim [Wed, 29 Aug 2007 23:53:55 +0000 (23:53 +0000)]
+ (locale) marked generated data/locale as svn:ignore-d
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.
Dmitry Kim [Wed, 29 Aug 2007 21:07:06 +0000 (21:07 +0000)]
+ (delicios.rb) support user-supplied tags for del.icio.us logging
Dmitry Kim [Wed, 29 Aug 2007 21:06:29 +0000 (21:06 +0000)]
* (url.rb) pass original irc message to url logger
Giuseppe Bilotta [Wed, 29 Aug 2007 20:55:35 +0000 (20:55 +0000)]
wow plugin: thread, don't block
Giuseppe Bilotta [Wed, 29 Aug 2007 20:55:33 +0000 (20:55 +0000)]
forecast plugin: thread, don't block
Giuseppe Bilotta [Wed, 29 Aug 2007 20:39:15 +0000 (20:39 +0000)]
Put the Irc attributes back where they belong
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
Giuseppe Bilotta [Wed, 29 Aug 2007 19:48:16 +0000 (19:48 +0000)]
ColorRx: accept a color specification with no foreground color
Giuseppe Bilotta [Wed, 29 Aug 2007 19:48:15 +0000 (19:48 +0000)]
Add Italic (\011) constant to complement Underline, Reverse and Bold
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.
Giuseppe Bilotta [Wed, 29 Aug 2007 15:37:47 +0000 (15:37 +0000)]
Flatten out Language module and class
Giuseppe Bilotta [Wed, 29 Aug 2007 12:00:54 +0000 (12:00 +0000)]
debugger plugin: fix computation of memory occupation differences.
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.
Giuseppe Bilotta [Tue, 28 Aug 2007 17:11:46 +0000 (17:11 +0000)]
basics botmodule: use #to_s to stringify multiword parameters
Giuseppe Bilotta [Tue, 28 Aug 2007 17:11:39 +0000 (17:11 +0000)]
ircbot: improve quit/restart message propagation
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
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
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
Giuseppe Bilotta [Tue, 28 Aug 2007 10:58:59 +0000 (10:58 +0000)]
rss plugin: fix watcher rescheduling broken in previous commit
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.
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
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
Giuseppe Bilotta [Mon, 27 Aug 2007 20:17:58 +0000 (20:17 +0000)]
rss plugin: uncoditionally renew the feed mutexes
Giuseppe Bilotta [Mon, 27 Aug 2007 20:17:56 +0000 (20:17 +0000)]
Call 'super' from the correct place in httputil
Giuseppe Bilotta [Mon, 27 Aug 2007 01:41:31 +0000 (01:41 +0000)]
Show the git version differently
Giuseppe Bilotta [Mon, 27 Aug 2007 01:41:30 +0000 (01:41 +0000)]
When running from a git repository, expose the current git revision
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
Giuseppe Bilotta [Sun, 26 Aug 2007 16:46:27 +0000 (16:46 +0000)]
shiritori plugin: suppress warning
Giuseppe Bilotta [Sun, 26 Aug 2007 16:38:34 +0000 (16:38 +0000)]
Only use locale functions when GetText was loaded
Giuseppe Bilotta [Sun, 26 Aug 2007 15:17:52 +0000 (15:17 +0000)]
Call 'super' method from #cleanup() in core modules too
Giuseppe Bilotta [Sun, 26 Aug 2007 15:13:48 +0000 (15:13 +0000)]
Call 'super' method from #cleanup() in all plugins
Giuseppe Bilotta [Sun, 26 Aug 2007 15:09:03 +0000 (15:09 +0000)]
Report plugin loading failues as errors, not as warnings
Giuseppe Bilotta [Sun, 26 Aug 2007 14:32:35 +0000 (14:32 +0000)]
rss plugin: all watchers are now informed of feed updates when anybody asks for the feed to be shown
Giuseppe Bilotta [Sun, 26 Aug 2007 14:30:03 +0000 (14:30 +0000)]
timer: tick when rescheduling
Giuseppe Bilotta [Sun, 26 Aug 2007 08:35:18 +0000 (08:35 +0000)]
Update .po files
Giuseppe Bilotta [Sun, 26 Aug 2007 08:31:41 +0000 (08:31 +0000)]
Missed some warn -> warning conversion
Giuseppe Bilotta [Sun, 26 Aug 2007 08:29:17 +0000 (08:29 +0000)]
auth core module: fix a bug in the permissions set argument parser
Giuseppe Bilotta [Sun, 26 Aug 2007 08:22:42 +0000 (08:22 +0000)]
Use rbot's own warning() command instead of Ruby built-in warn()
Giuseppe Bilotta [Sun, 26 Aug 2007 01:21:51 +0000 (01:21 +0000)]
Update .po files
Giuseppe Bilotta [Sun, 26 Aug 2007 01:16:32 +0000 (01:16 +0000)]
Translate Utils.secs_to_string strings
Giuseppe Bilotta [Sun, 26 Aug 2007 01:09:48 +0000 (01:09 +0000)]
Update .po files
Giuseppe Bilotta [Sun, 26 Aug 2007 01:03:59 +0000 (01:03 +0000)]
gettextize some more strings
Giuseppe Bilotta [Sun, 26 Aug 2007 00:54:24 +0000 (00:54 +0000)]
Remove extra (un)bolding from 'help failed plugins' help text
Giuseppe Bilotta [Sun, 26 Aug 2007 00:48:57 +0000 (00:48 +0000)]
Output gettext textdomain information when setting the language, not when loading the module
Giuseppe Bilotta [Sun, 26 Aug 2007 00:26:46 +0000 (00:26 +0000)]
Sanitize language string by downcasing, and use the sanitized string both for gettext locale and rbot language files. This allows language names such as 'traditional_chinese' to be input as 'Traditional Chinese'
Giuseppe Bilotta [Sun, 26 Aug 2007 00:14:49 +0000 (00:14 +0000)]
Cleaner gettext debug information reporting
Giuseppe Bilotta [Sat, 25 Aug 2007 23:35:34 +0000 (23:35 +0000)]
Try to guess the default language from the locale guessed from GeText
Giuseppe Bilotta [Sat, 25 Aug 2007 23:07:52 +0000 (23:07 +0000)]
Move 'it_IT' locale directory to 'it'
Giuseppe Bilotta [Sat, 25 Aug 2007 23:05:32 +0000 (23:05 +0000)]
gettext support: initial works for language -> locale mappings
Giuseppe Bilotta [Thu, 23 Aug 2007 22:13:08 +0000 (22:13 +0000)]
rss plugin: don't proceed if the specified feed doesn't exist
Giuseppe Bilotta [Thu, 23 Aug 2007 15:55:10 +0000 (15:55 +0000)]
Started italian translation
Giuseppe Bilotta [Thu, 23 Aug 2007 14:33:12 +0000 (14:33 +0000)]
Updated .po files
Giuseppe Bilotta [Thu, 23 Aug 2007 12:37:26 +0000 (12:37 +0000)]
auth core module: misplaced ) prevented gettext replacement
Giuseppe Bilotta [Thu, 23 Aug 2007 12:35:58 +0000 (12:35 +0000)]
New Auth module: keep auth.password and botowner passwords in sync when changing them
Giuseppe Bilotta [Thu, 23 Aug 2007 08:41:06 +0000 (08:41 +0000)]
url plugin: url.display_link_info is now an Integer: the number of links in a line for which info should be displayed
Giuseppe Bilotta [Thu, 23 Aug 2007 08:08:09 +0000 (08:08 +0000)]
config: allow migration from/to Boolean/IntegerValues
Giuseppe Bilotta [Thu, 23 Aug 2007 07:27:32 +0000 (07:27 +0000)]
url plugin: escape stuff before extracting urls
Giuseppe Bilotta [Thu, 23 Aug 2007 06:34:19 +0000 (06:34 +0000)]
url plugin: only consider http(s) urls found by URI.extract()
Giuseppe Bilotta [Wed, 22 Aug 2007 22:45:35 +0000 (22:45 +0000)]
url plugin: jump to fragment when grabbing first par of an url with fragment
Giuseppe Bilotta [Wed, 22 Aug 2007 22:21:37 +0000 (22:21 +0000)]
url plugin: use URI.extract to get urls in a message. Ensures links are properly grabbed, and grabs multiple urls in a line
Giuseppe Bilotta [Wed, 22 Aug 2007 21:52:18 +0000 (21:52 +0000)]
bash plugin: a nick is such only if it's followed by a space
Giuseppe Bilotta [Wed, 22 Aug 2007 20:42:19 +0000 (20:42 +0000)]
New Irc Framework: optimize Channel#has_user?()
Giuseppe Bilotta [Wed, 22 Aug 2007 20:35:28 +0000 (20:35 +0000)]
New Irc Framework: channel add_user was adding users indiscriminately when silent
Giuseppe Bilotta [Wed, 22 Aug 2007 20:14:33 +0000 (20:14 +0000)]
bash plugin: detect (nick) together with <nick> and nick: