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

16 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

16 years ago* translator.rb: use Irc::Utils.bot
Yaohan Chen [Sat, 11 Aug 2007 03:57:13 +0000 (03:57 +0000)]
* translator.rb: use Irc::Utils.bot

16 years agotranslator.rb:
Yaohan Chen [Sat, 11 Aug 2007 03:21:38 +0000 (03:21 +0000)]
translator.rb:
+ added WorldLingo translator
+ display translator information in help messages
* refactoring of error handling code

* updated messages

16 years ago* (httputils) docs spelling
Dmitry Kim [Sat, 11 Aug 2007 02:14:51 +0000 (02:14 +0000)]
* (httputils) docs spelling

16 years ago* (httputils) avoid "method replaced" warning
Dmitry Kim [Sat, 11 Aug 2007 00:53:29 +0000 (00:53 +0000)]
* (httputils) avoid "method replaced" warning

16 years ago* (httputils) moved encoding/charsets magic into httpres instances from the global...
Dmitry Kim [Fri, 10 Aug 2007 12:53:40 +0000 (12:53 +0000)]
* (httputils) moved encoding/charsets magic into httpres instances from the global class namespace

16 years ago* (plugins/translator) fixed a diagnostic message
Dmitry Kim [Fri, 10 Aug 2007 12:52:10 +0000 (12:52 +0000)]
* (plugins/translator) fixed a diagnostic message

16 years ago* alias.rb: fixed precedence error which caused list of aliases be reset on rescan
Yaohan Chen [Fri, 10 Aug 2007 09:39:17 +0000 (09:39 +0000)]
* alias.rb: fixed precedence error which caused list of aliases be reset on rescan

16 years ago* translator.rb: corrected naming of BabelfishTranslator#do_translate method
Yaohan Chen [Fri, 10 Aug 2007 09:30:06 +0000 (09:30 +0000)]
* translator.rb: corrected naming of BabelfishTranslator#do_translate method

16 years ago+ added a translator plugin
Yaohan Chen [Fri, 10 Aug 2007 09:16:23 +0000 (09:16 +0000)]
+ added a translator plugin
* updated messages

16 years ago* use Util.safe_save in alias plugin
Yaohan Chen [Tue, 7 Aug 2007 20:42:22 +0000 (20:42 +0000)]
* use Util.safe_save in alias plugin
* handle corrupt data file in alias plugin

16 years ago* (plugins/url.rb) apply URI.escape to make non-rfc charsets in uri useable
Dmitry Kim [Sun, 5 Aug 2007 22:17:36 +0000 (22:17 +0000)]
* (plugins/url.rb) apply URI.escape to make non-rfc charsets in uri useable

16 years ago* fixed some fuzzy messages
Yaohan Chen [Wed, 1 Aug 2007 04:48:49 +0000 (04:48 +0000)]
* fixed some fuzzy messages

16 years ago* fixed a typo in a message in shiritori
Yaohan Chen [Wed, 1 Aug 2007 04:41:34 +0000 (04:41 +0000)]
* fixed a typo in a message in shiritori
* regenerated messages

16 years agoStore the real_name information from WHO replies
Giuseppe Bilotta [Tue, 31 Jul 2007 21:10:43 +0000 (21:10 +0000)]
Store the real_name information from WHO replies

16 years agoNew IRC Framework: store a User's real_name
Giuseppe Bilotta [Tue, 31 Jul 2007 21:06:39 +0000 (21:06 +0000)]
New IRC Framework: store a User's real_name

16 years agoNew IRC Framework: WHO the channels we join, so that we get as much user information...
Giuseppe Bilotta [Tue, 31 Jul 2007 21:02:42 +0000 (21:02 +0000)]
New IRC Framework: WHO the channels we join, so that we get as much user information as possible about the user on channel

16 years agobotuser.rb: don't fail when being passed nil instead of an array to load
Giuseppe Bilotta [Tue, 31 Jul 2007 14:18:21 +0000 (14:18 +0000)]
botuser.rb: don't fail when being passed nil instead of an array to load

16 years agoAdd missing space in message
Giuseppe Bilotta [Sun, 29 Jul 2007 19:10:14 +0000 (19:10 +0000)]
Add missing space in message

16 years agoUser mode-checking methods now accept channel names and will try to resolve the corre...
Giuseppe Bilotta [Sun, 29 Jul 2007 11:08:32 +0000 (11:08 +0000)]
User mode-checking methods now accept channel names and will try to resolve the corresponding Channel automatically

16 years agoMode-checking methohds for User too
Giuseppe Bilotta [Thu, 26 Jul 2007 11:23:26 +0000 (11:23 +0000)]
Mode-checking methohds for User too

16 years agoChannel methods to check for user modes, with quickies to check for op and voice
Giuseppe Bilotta [Thu, 26 Jul 2007 11:11:17 +0000 (11:11 +0000)]
Channel methods to check for user modes, with quickies to check for op and voice

16 years ago* dictclient: adjusted output format
Yaohan Chen [Tue, 24 Jul 2007 22:16:55 +0000 (22:16 +0000)]
* dictclient: adjusted output format

16 years ago* Prevent the alias from including arguments not substituded in command, as a check for
Yaohan Chen [Mon, 23 Jul 2007 19:14:37 +0000 (19:14 +0000)]
* Prevent the alias from including arguments not substituded in command, as a check for
  possible incorrect command usage

16 years ago* display installed version when gettext version is unsupported
Yaohan Chen [Mon, 23 Jul 2007 19:02:21 +0000 (19:02 +0000)]
* display installed version when gettext version is unsupported

16 years ago* added Traditioanl Chinese response language file by hlb
Yaohan Chen [Mon, 23 Jul 2007 18:59:42 +0000 (18:59 +0000)]
* added Traditioanl Chinese response language file by hlb

16 years ago* added Traditional Chinese po file by hlb
Yaohan Chen [Mon, 23 Jul 2007 18:58:16 +0000 (18:58 +0000)]
* added Traditional Chinese po file by hlb
* updated po entries

16 years agoadded 'alias rm' as alternative for 'alias remove'
Yaohan Chen [Mon, 23 Jul 2007 03:46:05 +0000 (03:46 +0000)]
added 'alias rm' as alternative for 'alias remove'

16 years agofixed a copy-paste error causing incorrect count of failed plugins to be displayed
Yaohan Chen [Sun, 22 Jul 2007 20:57:29 +0000 (20:57 +0000)]
fixed a copy-paste error causing incorrect count of failed plugins to be displayed

16 years agofixed a typo in REQUIREMENTS, added link to ruby-gettext
Yaohan Chen [Sun, 22 Jul 2007 20:56:47 +0000 (20:56 +0000)]
fixed a typo in REQUIREMENTS, added link to ruby-gettext

16 years agoadded alias plugin
Yaohan Chen [Sat, 21 Jul 2007 00:12:47 +0000 (00:12 +0000)]
added alias plugin

16 years agoadded information about ruby-gettext in REQUIREMENTS
Yaohan Chen [Wed, 18 Jul 2007 17:24:05 +0000 (17:24 +0000)]
added information about ruby-gettext in REQUIREMENTS

16 years ago- added version check for ruby/gettext, too low or high versions will not be loaded
Yaohan Chen [Wed, 18 Jul 2007 17:18:13 +0000 (17:18 +0000)]
- added version check for ruby/gettext, too low or high versions will not be loaded
  and fallback is done
- updated comments in load_gettext.rb
- moved requires in relevant code sections

16 years ago* (games/roulette) twice-in-a-row logic was very, very broken.
Dmitry Kim [Tue, 17 Jul 2007 02:02:42 +0000 (02:02 +0000)]
* (games/roulette) twice-in-a-row logic was very, very broken.

16 years agoedited Japanese translation
Yaohan Chen [Sun, 15 Jul 2007 22:04:37 +0000 (22:04 +0000)]
edited Japanese translation

16 years agogettextized two messages in azgame missed in the previous revision
Yaohan Chen [Sun, 15 Jul 2007 21:35:12 +0000 (21:35 +0000)]
gettextized two messages in azgame missed in the previous revision
edited Japanese translation