rbot
17 years agoLogging now also logs the filename and function it's being called from
Giuseppe Bilotta [Wed, 26 Jul 2006 22:48:47 +0000 (22:48 +0000)] 
Logging now also logs the filename and function it's being called from

17 years agoGuess properly default botclass under Windows (preventing a backtrace at the same...
Giuseppe Bilotta [Wed, 26 Jul 2006 16:54:21 +0000 (16:54 +0000)] 
Guess properly default botclass under Windows (preventing a backtrace at the same time, woot)

17 years agoProvide a handle method for plugins, so that plugin creators can both use map and...
Giuseppe Bilotta [Wed, 26 Jul 2006 15:34:29 +0000 (15:34 +0000)] 
Provide a handle method for plugins, so that plugin creators can both use map and make their own privmsg method by calling handle(m) from within it

17 years agoWhitespace cleanup
Giuseppe Bilotta [Wed, 26 Jul 2006 15:31:04 +0000 (15:31 +0000)] 
Whitespace cleanup

17 years agoserver.ping_timeout now defaults to 30 seconds
Giuseppe Bilotta [Wed, 26 Jul 2006 13:36:45 +0000 (13:36 +0000)] 
server.ping_timeout now defaults to 30 seconds

17 years agoMore robust error handling in rss.rb, also increased the default polling value for...
Giuseppe Bilotta [Wed, 26 Jul 2006 13:05:28 +0000 (13:05 +0000)] 
More robust error handling in rss.rb, also increased the default polling value for feeds. If failures occurred, polling time is increased

17 years agoAdd 'google' as a synonym for search
Giuseppe Bilotta [Wed, 26 Jul 2006 13:04:16 +0000 (13:04 +0000)] 
Add 'google' as a synonym for search

17 years agoExport the bot's plugins; this eases plugins' communication with each other
Giuseppe Bilotta [Wed, 26 Jul 2006 12:26:41 +0000 (12:26 +0000)] 
Export the bot's plugins; this eases plugins' communication with each other

17 years agoAdd info about ignored plugins (blacklisted, disabled, already loaded) to help; clean...
Giuseppe Bilotta [Wed, 26 Jul 2006 05:35:18 +0000 (05:35 +0000)] 
Add info about ignored plugins (blacklisted, disabled, already loaded) to help; clean up failed plugins help

17 years agoMake demauro work with Ruby 1.8.4 too
Giuseppe Bilotta [Tue, 25 Jul 2006 22:09:25 +0000 (22:09 +0000)] 
Make demauro work with Ruby 1.8.4 too

17 years agoBetter reporting of plugin failures
Giuseppe Bilotta [Tue, 25 Jul 2006 21:25:58 +0000 (21:25 +0000)] 
Better reporting of plugin failures

17 years agoFix a bug in {{{help pluginfailures}}}
Giuseppe Bilotta [Tue, 25 Jul 2006 14:28:12 +0000 (14:28 +0000)] 
Fix a bug in {{{help pluginfailures}}}

17 years agoNew config commands: reset (synonym for unset), add <...> to <...> and rm <...> from...
Giuseppe Bilotta [Tue, 25 Jul 2006 13:18:38 +0000 (13:18 +0000)] 
New config commands: reset (synonym for unset), add <...> to <...> and rm <...> from <...> to manipulate individual values in BotConfigArrayValues

17 years agoFix a bug in config set (particularly important for BotConfigArrayValues)
Giuseppe Bilotta [Tue, 25 Jul 2006 12:29:16 +0000 (12:29 +0000)] 
Fix a bug in config set (particularly important for BotConfigArrayValues)

17 years agoForgot to stringify an instance of key
Giuseppe Bilotta [Tue, 25 Jul 2006 12:11:41 +0000 (12:11 +0000)] 
Forgot to stringify an instance of key

17 years agoUse symbols internally instead of strings for config keys.
Giuseppe Bilotta [Tue, 25 Jul 2006 09:57:13 +0000 (09:57 +0000)] 
Use symbols internally instead of strings for config keys.

17 years agoInform users about plugins that failed to load; preserve the (supposedly) most intere...
Giuseppe Bilotta [Tue, 25 Jul 2006 01:19:50 +0000 (01:19 +0000)] 
Inform users about plugins that failed to load; preserve the (supposedly) most interesting part(s) of the backtrace and display them on request

17 years agoWhen verifying uniqueness of plugin map parameters names, check for :param vs *param too
Giuseppe Bilotta [Tue, 25 Jul 2006 01:18:02 +0000 (01:18 +0000)] 
When verifying uniqueness of plugin map parameters names, check for :param vs *param too

17 years agoCorrect Underline and Reverse
Giuseppe Bilotta [Tue, 25 Jul 2006 01:16:34 +0000 (01:16 +0000)] 
Correct Underline and Reverse

17 years agoImplement map! properly this time
Giuseppe Bilotta [Mon, 24 Jul 2006 23:21:43 +0000 (23:21 +0000)] 
Implement map! properly this time

17 years agoAdd mapsvn diff method for plugins: just like map, but doesn't add synonyms to the...
Giuseppe Bilotta [Mon, 24 Jul 2006 22:43:11 +0000 (22:43 +0000)] 
Add mapsvn diff method for plugins: just like map, but doesn't add synonyms to the plugin name

17 years agoFix yet more problem reporting in rss plugin
Giuseppe Bilotta [Mon, 24 Jul 2006 21:56:41 +0000 (21:56 +0000)] 
Fix yet more problem reporting in rss plugin

17 years agoFix problem reporting in rss plugin
Giuseppe Bilotta [Mon, 24 Jul 2006 21:44:05 +0000 (21:44 +0000)] 
Fix problem reporting in rss plugin

17 years agocon:
Giuseppe Bilotta [Mon, 24 Jul 2006 20:40:56 +0000 (20:40 +0000)] 
con:

17 years agoRSS plugin update.
Giuseppe Bilotta [Mon, 24 Jul 2006 19:02:37 +0000 (19:02 +0000)] 
RSS plugin update.

* Less spammy formatting default for trac entries
* debug line inspecting the item to be formatted
* to_s and to_a methods for RssBlob

17 years agoRSS plugin cleanup: printFormattedRss made more generic, added 'trac' type
Giuseppe Bilotta [Mon, 24 Jul 2006 18:43:44 +0000 (18:43 +0000)] 
RSS plugin cleanup: printFormattedRss made more generic, added 'trac' type

17 years agoRSS plugin now uses bold all around in the help messages
Giuseppe Bilotta [Mon, 24 Jul 2006 15:31:10 +0000 (15:31 +0000)] 
RSS plugin now uses bold all around in the help messages

17 years agoAdd constants for Bold/Underline/Reverse/Color
Giuseppe Bilotta [Mon, 24 Jul 2006 15:30:00 +0000 (15:30 +0000)] 
Add constants for Bold/Underline/Reverse/Color

17 years agoSet KCODE; UTF-8 is the future
Giuseppe Bilotta [Mon, 24 Jul 2006 15:29:34 +0000 (15:29 +0000)] 
Set KCODE; UTF-8 is the future

17 years agoRevert the Struct.new-related changes because they don't do what we want
Giuseppe Bilotta [Mon, 24 Jul 2006 14:55:32 +0000 (14:55 +0000)] 
Revert the Struct.new-related changes because they don't do what we want

17 years agoNew command system for RSS plugin
Giuseppe Bilotta [Mon, 24 Jul 2006 14:49:34 +0000 (14:49 +0000)] 
New command system for RSS plugin

17 years agoMore RSS plugin improvements
Giuseppe Bilotta [Mon, 24 Jul 2006 13:44:30 +0000 (13:44 +0000)] 
More RSS plugin improvements

17 years agoAdditiona work on the caching we really have to look into some serious http library...
Giuseppe Bilotta [Mon, 24 Jul 2006 13:44:05 +0000 (13:44 +0000)] 
Additiona work on the caching we really have to look into some serious http library with automatic cache management

17 years agoStupid upper/lowercase typo in rss plugin
Giuseppe Bilotta [Mon, 24 Jul 2006 12:41:24 +0000 (12:41 +0000)] 
Stupid upper/lowercase typo in rss plugin

17 years ago[257] was moot, this is the propert way to prevent Structs from being created twice
Giuseppe Bilotta [Mon, 24 Jul 2006 12:35:56 +0000 (12:35 +0000)] 
[257] was moot, this is the propert way to prevent Structs from being created twice

17 years agoRSS plugin is now in '''much''' better shape
Giuseppe Bilotta [Mon, 24 Jul 2006 12:33:46 +0000 (12:33 +0000)] 
RSS plugin is now in '''much''' better shape

17 years agohttputil get/head/get_cached now also accept strings and not just URIs
Giuseppe Bilotta [Mon, 24 Jul 2006 12:32:53 +0000 (12:32 +0000)] 
httputil get/head/get_cached now also accept strings and not just URIs

17 years agoSuppress the warnings for Struct redefinition on rescan
Giuseppe Bilotta [Mon, 24 Jul 2006 06:50:20 +0000 (06:50 +0000)] 
Suppress the warnings for Struct redefinition on rescan

17 years agoCleanups and bugfixes for the RSS plugin
Giuseppe Bilotta [Mon, 24 Jul 2006 00:01:18 +0000 (00:01 +0000)] 
Cleanups and bugfixes for the RSS plugin

17 years agoInitial version of the RSS plugin. Needs lots of love
Giuseppe Bilotta [Sun, 23 Jul 2006 23:40:34 +0000 (23:40 +0000)] 
Initial version of the RSS plugin. Needs lots of love

17 years agoAdd act method to messages; behaves like reply, but does a CTCP action
Giuseppe Bilotta [Sun, 23 Jul 2006 23:04:15 +0000 (23:04 +0000)] 
Add act method to messages; behaves like reply, but does a CTCP action

17 years agoFix yielding in {{{httputil.get}}} and {{{httputil.head}}} and usage of [] instead...
Giuseppe Bilotta [Sun, 23 Jul 2006 22:53:37 +0000 (22:53 +0000)] 
Fix yielding in {{{httputil.get}}} and {{{httputil.head}}} and usage of [] instead of () in remove_stale_cache

17 years agoAdd debug backtrace info for HttpUtil failures
Giuseppe Bilotta [Sun, 23 Jul 2006 21:51:52 +0000 (21:51 +0000)] 
Add debug backtrace info for HttpUtil failures

17 years agourban dictionary now uses get_cached. It's still slow, though, so we can safely say...
Giuseppe Bilotta [Sun, 23 Jul 2006 17:53:49 +0000 (17:53 +0000)] 
urban dictionary now uses get_cached. It's still slow, though, so we can safely say it's not a cache problem. It looks like it should cache the parsed bodies itself ...

17 years agoAdd get_cached method to httputil. No need to download the same page over and over...
Giuseppe Bilotta [Sun, 23 Jul 2006 17:52:49 +0000 (17:52 +0000)] 
Add get_cached method to httputil. No need to download the same page over and over again. It can be safely used with RSS feeds that return the last-modified attribute because it checks that, if possible

17 years agoUrban requires rubyful_soup, gracefully disable the plugin if it can't be found
Giuseppe Bilotta [Sun, 23 Jul 2006 14:32:53 +0000 (14:32 +0000)] 
Urban requires rubyful_soup, gracefully disable the plugin if it can't be found

17 years agoUrban dictionary plugin, contributed by eean (#105)
Giuseppe Bilotta [Sun, 23 Jul 2006 14:23:47 +0000 (14:23 +0000)] 
Urban dictionary plugin, contributed by eean (#105)

17 years ago{{{httputil.rb}}} now handles redirects: a step towards #105, can be used also in...
Giuseppe Bilotta [Sun, 23 Jul 2006 14:13:15 +0000 (14:13 +0000)] 
{{{httputil.rb}}} now handles redirects: a step towards #105, can be used also in other net-oriented plugins

17 years agoFix a warning introduced with [245]
Giuseppe Bilotta [Sun, 23 Jul 2006 14:12:14 +0000 (14:12 +0000)] 
Fix a warning introduced with [245]

17 years agoImplement support for the CAPAB IDENTIFY-MSG capability available on some server...
Giuseppe Bilotta [Sat, 22 Jul 2006 23:16:40 +0000 (23:16 +0000)] 
Implement support for the CAPAB IDENTIFY-MSG capability available on some server, therefore providing messages with the identified? method that tells if the sourcenick has identified with services or not

17 years agoBetter interruption handling, saner generic exception handling
Giuseppe Bilotta [Sat, 22 Jul 2006 15:50:30 +0000 (15:50 +0000)] 
Better interruption handling, saner generic exception handling

17 years agoOf course, I forgot about creating the subregistry directories for brand new installa...
Giuseppe Bilotta [Sat, 22 Jul 2006 15:35:13 +0000 (15:35 +0000)] 
Of course, I forgot about creating the subregistry directories for brand new installations. This fixes it, even though the code should be brought over to dbhash instead of being duplicated all around

17 years agoOk, too hasty. Fix 'no plugins loaded on rescan' bug introduced by previous patch
Giuseppe Bilotta [Sat, 22 Jul 2006 15:19:58 +0000 (15:19 +0000)] 
Ok, too hasty. Fix 'no plugins loaded on rescan' bug introduced by previous patch

17 years agoNew configuration option plugins.blacklist holding an array of plugins to be blacklis...
Giuseppe Bilotta [Sat, 22 Jul 2006 14:58:16 +0000 (14:58 +0000)] 
New configuration option plugins.blacklist holding an array of plugins to be blacklisted; entries are plugin filenames without the final {{{.rb}}}

17 years agoFix path creation when upgrading 0.9.9 or earlier single-db registry
Giuseppe Bilotta [Fri, 21 Jul 2006 23:31:01 +0000 (23:31 +0000)] 
Fix path creation when upgrading 0.9.9 or earlier single-db registry

17 years agoFix subregistry importing from single-file (0.9.9 or older) plugin database
Giuseppe Bilotta [Fri, 21 Jul 2006 23:14:06 +0000 (23:14 +0000)] 
Fix subregistry importing from single-file (0.9.9 or older) plugin database

17 years agoFix private messages not working and default channel names for the message queue
Giuseppe Bilotta [Fri, 21 Jul 2006 22:43:07 +0000 (22:43 +0000)] 
Fix private messages not working and default channel names for the message queue

17 years agoWhoops, typo. My bad.
Alexander Beisig [Fri, 21 Jul 2006 22:09:23 +0000 (22:09 +0000)] 
Whoops, typo.  My bad.

17 years agoDisabled sending URL info to the channel by default, as several people
Alexander Beisig [Fri, 21 Jul 2006 22:06:39 +0000 (22:06 +0000)] 
Disabled sending URL info to the channel by default, as several people
found it quite annoying.  Can be reenabled with url.display_link_info

17 years agoFix message queue length
Giuseppe Bilotta [Fri, 21 Jul 2006 20:51:55 +0000 (20:51 +0000)] 
Fix message queue length

17 years agoadded default security levels for "markov" and "autoop" (!)
Alexander Beisig [Fri, 21 Jul 2006 17:22:41 +0000 (17:22 +0000)] 
added default security levels for "markov" and "autoop" (!)

17 years agoImplement new message queue system. Messages in ring 0 have top priority, other messa...
Giuseppe Bilotta [Fri, 21 Jul 2006 15:43:52 +0000 (15:43 +0000)] 
Implement new message queue system. Messages in ring 0 have top priority, other messages are satisfied round-robin

17 years agoSmall improvement on the byterate-based throttling code
Giuseppe Bilotta [Fri, 21 Jul 2006 09:31:33 +0000 (09:31 +0000)] 
Small improvement on the byterate-based throttling code

17 years agoBetter byterate-based throttling code. We really need the separate queues though
Giuseppe Bilotta [Fri, 21 Jul 2006 08:58:22 +0000 (08:58 +0000)] 
Better byterate-based throttling code. We really need the separate queues though

17 years agoApply patch offered in #98
Giuseppe Bilotta [Thu, 20 Jul 2006 21:52:53 +0000 (21:52 +0000)] 
Apply patch offered in #98

17 years agoFix #57
Giuseppe Bilotta [Thu, 20 Jul 2006 21:39:03 +0000 (21:39 +0000)] 
Fix #57

17 years agoClean up logging from the plugins
Giuseppe Bilotta [Thu, 20 Jul 2006 20:26:11 +0000 (20:26 +0000)] 
Clean up logging from the plugins

17 years agoAll lib/rbot files are now upgraded to the new logging feature
Giuseppe Bilotta [Thu, 20 Jul 2006 20:08:26 +0000 (20:08 +0000)] 
All lib/rbot files are now upgraded to the new logging feature

17 years agoRename the former {{{log}}} method to {{{irclog}}} and introduce new logging function...
Giuseppe Bilotta [Thu, 20 Jul 2006 19:47:39 +0000 (19:47 +0000)] 
Rename the former {{{log}}} method to {{{irclog}}} and introduce new logging functions: alongside the old {{{debug}}} function we now have {{{log}}}, {{{warning}}} and {{{error}}}, which should be used everywhere instead of the good old {{{puts}}} method

17 years agoRedirect standard streams if backgrounding was requested even if the fork failed
Giuseppe Bilotta [Thu, 20 Jul 2006 17:47:13 +0000 (17:47 +0000)] 
Redirect standard streams if backgrounding was requested even if the fork failed

17 years agoAdd --background option to daemonize the bot
Giuseppe Bilotta [Thu, 20 Jul 2006 17:17:15 +0000 (17:17 +0000)] 
Add --background option to daemonize the bot

17 years agoInclude exception class when plugins fail
Giuseppe Bilotta [Thu, 20 Jul 2006 14:52:18 +0000 (14:52 +0000)] 
Include exception class when plugins fail

17 years agoExplicitly handle BDB::Fatal errors by dumping database stats and restarting
Giuseppe Bilotta [Thu, 20 Jul 2006 14:40:02 +0000 (14:40 +0000)] 
Explicitly handle BDB::Fatal errors by dumping database stats and restarting

17 years agoFine-tune byterate throttling flood prevention. Better than before, but still not...
Giuseppe Bilotta [Wed, 19 Jul 2006 16:55:09 +0000 (16:55 +0000)] 
Fine-tune byterate throttling flood prevention. Better than before, but still not there.

17 years agoImplement byterate-based flood protection
Giuseppe Bilotta [Wed, 19 Jul 2006 15:25:22 +0000 (15:25 +0000)] 
Implement byterate-based flood protection

17 years agoImprove SIG(INT|TERM|HUP) handling and shutting down sequence
Giuseppe Bilotta [Tue, 18 Jul 2006 22:30:34 +0000 (22:30 +0000)] 
Improve SIG(INT|TERM|HUP) handling and shutting down sequence

17 years agoFix a problem introduced with the new quote saving procedure
Giuseppe Bilotta [Tue, 18 Jul 2006 22:16:57 +0000 (22:16 +0000)] 
Fix a problem introduced with the new quote saving procedure

17 years agoImprove robustness while saving auth config files and channel quotes
Giuseppe Bilotta [Tue, 18 Jul 2006 14:44:17 +0000 (14:44 +0000)] 
Improve robustness while saving auth config files and channel quotes

17 years agoSome nickservs don't want the nick to be passed to them when identifying
Giuseppe Bilotta [Tue, 18 Jul 2006 13:44:49 +0000 (13:44 +0000)] 
Some nickservs don't want the nick to be passed to them when identifying

17 years agorbot now properly identifies as the 'next version svn', and the gem package is built...
Giuseppe Bilotta [Tue, 18 Jul 2006 12:18:18 +0000 (12:18 +0000)] 
rbot now properly identifies as the 'next version svn', and the gem package is built as the 'next version'

17 years agoFixed chucknorris.rb debug output
Alexander Beisig [Mon, 17 Jul 2006 20:28:18 +0000 (20:28 +0000)] 
Fixed chucknorris.rb debug output

17 years agoChanges that will (hopefully) make rbot work directly from the SVN checkout
Alexander Beisig [Mon, 17 Jul 2006 20:22:51 +0000 (20:22 +0000)] 
Changes that will (hopefully) make rbot work directly from the SVN checkout

17 years agoFix for #102
Giuseppe Bilotta [Fri, 14 Jul 2006 12:26:49 +0000 (12:26 +0000)] 
Fix for #102

17 years agoircbot shouldn't issue {{{@socket}}} commands when disconnected
Giuseppe Bilotta [Thu, 13 Jul 2006 14:31:24 +0000 (14:31 +0000)] 
ircbot shouldn't issue {{{@socket}}} commands when disconnected

17 years agoPrevent a traceback when network is down and clearq is called. Don't know if it's...
Giuseppe Bilotta [Thu, 13 Jul 2006 14:30:55 +0000 (14:30 +0000)] 
Prevent a traceback when network is down and clearq is called. Don't know if it's better this way or by adding an {{{if @socket.connected?}}} at {{{ircbot.rb:373}}}

17 years agoFix a problem with not rejoining channel after disconnect and nick taken, because...
Giuseppe Bilotta [Thu, 13 Jul 2006 14:27:24 +0000 (14:27 +0000)] 
Fix a problem with not rejoining channel after disconnect and nick taken, because the JOIN commands were sent too soon.

17 years agoAdd plugin for dictionary lookup using the (Italian) De Mauro/Paravia online dictionary
Giuseppe Bilotta [Wed, 5 Jul 2006 16:19:40 +0000 (16:19 +0000)] 
Add plugin for dictionary lookup using the (Italian) De Mauro/Paravia online dictionary

17 years agoImprove debug output for multiline error messages. Improve exception handling for...
Giuseppe Bilotta [Wed, 5 Jul 2006 16:18:18 +0000 (16:18 +0000)] 
Improve debug output for multiline error messages. Improve exception handling for socket and connection problems. Stop sending pings when disconnected.

18 years agoAdd $stdout flushing to debug. This is needed to work around some 'laggy console...
Giuseppe Bilotta [Thu, 29 Jun 2006 22:56:08 +0000 (22:56 +0000)] 
Add $stdout flushing to debug. This is needed to work around some 'laggy console' issues that may occur when using a tee program under Windows to copy the debug output to a file on disk

18 years agoImprove nick management when it was taken
Giuseppe Bilotta [Thu, 29 Jun 2006 07:31:39 +0000 (07:31 +0000)] 
Improve nick management when it was taken

18 years agoBe more tolerant for messages about channels we are not in, but still signal them...
Giuseppe Bilotta [Wed, 28 Jun 2006 22:21:17 +0000 (22:21 +0000)] 
Be more tolerant for messages about channels we are not in, but still signal them as bugs

18 years agoBetter workaround for ticket #58; now the {{{names}}} delegationg passes on the chann...
Giuseppe Bilotta [Wed, 28 Jun 2006 21:53:40 +0000 (21:53 +0000)] 
Better workaround for ticket #58; now the {{{names}}} delegationg passes on the channel and user list

18 years agoThere are now three nickserv config options (name, ident_request, wait). The bot...
Giuseppe Bilotta [Wed, 28 Jun 2006 21:44:18 +0000 (21:44 +0000)] 
There are now three nickserv config options (name, ident_request, wait). The bot now also kills any ghosts that use its nick. Close ticket #88. Also provide a workaround for ticket #58.

18 years agoFix issue #101
Giuseppe Bilotta [Wed, 28 Jun 2006 16:02:24 +0000 (16:02 +0000)] 
Fix issue #101

18 years agoWhitespace cleanup
Giuseppe Bilotta [Wed, 28 Jun 2006 15:28:14 +0000 (15:28 +0000)] 
Whitespace cleanup

18 years agosome small improvements to topic.rb
Alexander Beisig [Mon, 26 Jun 2006 15:55:18 +0000 (15:55 +0000)] 
some small improvements to topic.rb

- 'topic sep' now updates the topic with the new separator
- 'topic clear' command to clear the topic
- checks if rbot is in the channel specified in private adressing

18 years agoFix issue #71 with the proposed patch
Giuseppe Bilotta [Mon, 26 Jun 2006 15:35:24 +0000 (15:35 +0000)] 
Fix issue #71 with the proposed patch

18 years agoapplied patch to topic.rb by [dmp] for #100
Alexander Beisig [Mon, 26 Jun 2006 15:09:08 +0000 (15:09 +0000)] 
applied patch to topic.rb by [dmp] for #100

18 years agoApply patch proposed in ticket #99
Giuseppe Bilotta [Fri, 23 Jun 2006 15:57:14 +0000 (15:57 +0000)] 
Apply patch proposed in ticket #99

18 years agofixed directory structure problems with the new db code (#73, comment at #59)
Alexander Beisig [Fri, 9 Jun 2006 16:35:29 +0000 (16:35 +0000)] 
fixed directory structure problems with the new db code (#73, comment at #59)