]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/log
user/henk/code/ruby/rbot.git
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

16 years agoshiritori plugin: suppress warning
Giuseppe Bilotta [Sun, 26 Aug 2007 16:46:27 +0000 (16:46 +0000)]
shiritori plugin: suppress warning

16 years agoOnly use locale functions when GetText was loaded
Giuseppe Bilotta [Sun, 26 Aug 2007 16:38:34 +0000 (16:38 +0000)]
Only use locale functions when GetText was loaded

16 years agoCall 'super' method from #cleanup() in core modules too
Giuseppe Bilotta [Sun, 26 Aug 2007 15:17:52 +0000 (15:17 +0000)]
Call 'super' method from #cleanup() in core modules too

16 years agoCall 'super' method from #cleanup() in all plugins
Giuseppe Bilotta [Sun, 26 Aug 2007 15:13:48 +0000 (15:13 +0000)]
Call 'super' method from #cleanup() in all plugins

16 years agoReport plugin loading failues as errors, not as warnings
Giuseppe Bilotta [Sun, 26 Aug 2007 15:09:03 +0000 (15:09 +0000)]
Report plugin loading failues as errors, not as warnings

16 years agorss plugin: all watchers are now informed of feed updates when anybody asks for the...
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

16 years agotimer: tick when rescheduling
Giuseppe Bilotta [Sun, 26 Aug 2007 14:30:03 +0000 (14:30 +0000)]
timer: tick when rescheduling

16 years agoUpdate .po files
Giuseppe Bilotta [Sun, 26 Aug 2007 08:35:18 +0000 (08:35 +0000)]
Update .po files

16 years agoMissed some warn -> warning conversion
Giuseppe Bilotta [Sun, 26 Aug 2007 08:31:41 +0000 (08:31 +0000)]
Missed some warn -> warning conversion

16 years agoauth core module: fix a bug in the permissions set argument parser
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

16 years agoUse rbot's own warning() command instead of Ruby built-in warn()
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()

16 years agoUpdate .po files
Giuseppe Bilotta [Sun, 26 Aug 2007 01:21:51 +0000 (01:21 +0000)]
Update .po files

16 years agoTranslate Utils.secs_to_string strings
Giuseppe Bilotta [Sun, 26 Aug 2007 01:16:32 +0000 (01:16 +0000)]
Translate Utils.secs_to_string strings

16 years agoUpdate .po files
Giuseppe Bilotta [Sun, 26 Aug 2007 01:09:48 +0000 (01:09 +0000)]
Update .po files

16 years agogettextize some more strings
Giuseppe Bilotta [Sun, 26 Aug 2007 01:03:59 +0000 (01:03 +0000)]
gettextize some more strings

16 years agoRemove extra (un)bolding from 'help failed plugins' help text
Giuseppe Bilotta [Sun, 26 Aug 2007 00:54:24 +0000 (00:54 +0000)]
Remove extra (un)bolding from 'help failed plugins' help text

16 years agoOutput gettext textdomain information when setting the language, not when loading...
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

16 years agoSanitize language string by downcasing, and use the sanitized string both for gettext...
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'

16 years agoCleaner gettext debug information reporting
Giuseppe Bilotta [Sun, 26 Aug 2007 00:14:49 +0000 (00:14 +0000)]
Cleaner gettext debug information reporting

16 years agoTry to guess the default language from the locale guessed from GeText
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

16 years agoMove 'it_IT' locale directory to 'it'
Giuseppe Bilotta [Sat, 25 Aug 2007 23:07:52 +0000 (23:07 +0000)]
Move 'it_IT' locale directory to 'it'

16 years agogettext support: initial works for language -> locale mappings
Giuseppe Bilotta [Sat, 25 Aug 2007 23:05:32 +0000 (23:05 +0000)]
gettext support: initial works for language -> locale mappings

16 years agorss plugin: don't proceed if the specified feed doesn't exist
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

16 years agoStarted italian translation
Giuseppe Bilotta [Thu, 23 Aug 2007 15:55:10 +0000 (15:55 +0000)]
Started italian translation

16 years agoUpdated .po files
Giuseppe Bilotta [Thu, 23 Aug 2007 14:33:12 +0000 (14:33 +0000)]
Updated .po files

16 years agoauth core module: misplaced ) prevented gettext replacement
Giuseppe Bilotta [Thu, 23 Aug 2007 12:37:26 +0000 (12:37 +0000)]
auth core module: misplaced ) prevented gettext replacement

16 years agoNew Auth module: keep auth.password and botowner passwords in sync when changing...
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

16 years agourl plugin: url.display_link_info is now an Integer: the number of links in a line...
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

16 years agoconfig: allow migration from/to Boolean/IntegerValues
Giuseppe Bilotta [Thu, 23 Aug 2007 08:08:09 +0000 (08:08 +0000)]
config: allow migration from/to Boolean/IntegerValues

16 years agourl plugin: escape stuff before extracting urls
Giuseppe Bilotta [Thu, 23 Aug 2007 07:27:32 +0000 (07:27 +0000)]
url plugin: escape stuff before extracting urls

16 years agourl plugin: only consider http(s) urls found by URI.extract()
Giuseppe Bilotta [Thu, 23 Aug 2007 06:34:19 +0000 (06:34 +0000)]
url plugin: only consider http(s) urls found by URI.extract()

16 years agourl plugin: jump to fragment when grabbing first par of an url with fragment
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

16 years agourl plugin: use URI.extract to get urls in a message. Ensures links are properly...
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

16 years agobash plugin: a nick is such only if it's followed by a space
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

16 years agoNew Irc Framework: optimize Channel#has_user?()
Giuseppe Bilotta [Wed, 22 Aug 2007 20:42:19 +0000 (20:42 +0000)]
New Irc Framework: optimize Channel#has_user?()

16 years agoNew Irc Framework: channel add_user was adding users indiscriminately when silent
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

16 years agobash plugin: detect (nick) together with <nick> and nick:
Giuseppe Bilotta [Wed, 22 Aug 2007 20:14:33 +0000 (20:14 +0000)]
bash plugin: detect (nick) together with <nick> and nick:

16 years agobash plugin: collapse consecutive lines from the same nick
Giuseppe Bilotta [Wed, 22 Aug 2007 19:57:59 +0000 (19:57 +0000)]
bash plugin: collapse consecutive lines from the same nick

16 years ago* (ircbot) remove $cl_loglevel undefined warning
Dmitry Kim [Tue, 21 Aug 2007 06:15:48 +0000 (06:15 +0000)]
* (ircbot) remove $cl_loglevel undefined warning

16 years ago+ figlet.rb: added figlet.path to make path of the figlet program configurable
Yaohan Chen [Fri, 17 Aug 2007 16:59:23 +0000 (16:59 +0000)]
+ figlet.rb: added figlet.path to make path of the figlet program configurable

16 years ago+ translator.rb: added 'translator' command which automatically picks a translator
Yaohan Chen [Wed, 15 Aug 2007 03:35:52 +0000 (03:35 +0000)]
+ translator.rb: added 'translator' command which automatically picks a translator
  for given language pair

16 years ago* fixed incorrect loading logic which could have added entries to @aliases even when...
Yaohan Chen [Tue, 14 Aug 2007 18:02:04 +0000 (18:02 +0000)]
* fixed incorrect loading logic which could have added entries to @aliases even when they
  were invalid

16 years agosearch plugin: use single result format when a single hit is found
Giuseppe Bilotta [Tue, 14 Aug 2007 17:19:27 +0000 (17:19 +0000)]
search plugin: use single result format when a single hit is found