rbot
17 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

17 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.

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

17 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

17 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

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

17 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

17 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

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

17 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

17 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

17 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

17 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

17 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)

17 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

17 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.

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

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

17 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.

17 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

17 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.

17 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

17 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

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

17 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

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

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

17 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

17 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

17 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.

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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

17 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.

17 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

17 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.

17 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.

17 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

17 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

17 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

17 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

17 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

17 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

17 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.

17 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

17 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

17 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

17 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

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

17 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

17 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

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

17 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

17 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

17 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

17 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

17 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

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

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

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

17 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

17 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()

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

17 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

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

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

17 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

17 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

17 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'

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

17 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

17 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'

17 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

17 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

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

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

17 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

17 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

17 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

17 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

17 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

17 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()

17 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

17 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

17 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

17 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?()

17 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

17 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:

17 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

17 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

17 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

17 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

17 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

17 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

17 years ago* (ircbot) fatal typo in :badnick handler
Dmitry Kim [Sun, 12 Aug 2007 19:55:43 +0000 (19:55 +0000)] 
* (ircbot) fatal typo in :badnick handler