Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-11-15 | plugins: improve error handling on load | Giuseppe Bilotta | |
Support OAuth2::Error braindead extension to StandardError and wrap loading in an outer rescue to catch problems with the error handling. | |||
2010-10-04 | DBFatal at load time deserve special treatment | Giuseppe Bilotta | |
Don't trap them, rerise and let the bot handle them | |||
2010-09-30 | * more BDB leaking fixed | Giuseppe Bilotta | |
2010-05-12 | Survive active_support idiocy | Giuseppe Bilotta | |
Somebody should hang the ActiveSupport developers by their balls with barbed wire. Their MissingSourceFile extension to LoadError _expects_ a second argument, breaking the usual Exception interface (instead, the smart thing to do would have been to make the second parameter optional and run the code in the from_message method if it was missing). | |||
2009-09-06 | ruby 1.9: Exception#to_str | franz | |
Since in ruby 1.9 Exception#to_str was removed, change it to to #to_s | |||
2009-08-12 | Better handling of MessageMapper failures | Giuseppe Bilotta | |
The plugin fallback method is now passed the list of failures. Failures themselves are encapsulated in their own data type, making it easier to handle failures that should inform the user with something more detailed than the classic 'usage' pattern. It's still up to the fallback method to make use (e.g. echo) the relevant messages. | |||
2009-06-16 | lib/rbot/plugins.rb: remove executable bit | Adam James | |
2009-02-28 | plugins: allow plugins whitelisting | Raine Virta | |
If the whitelist is not empty, only load the specified plugins. | |||
2009-02-28 | plugins: refactor plugin scanning | Raine Virta | |
Refactor plugin scanning for cleaner distinction between core modules and plugins. | |||
2009-02-28 | Separate @dirs containing all botmodules (plugins and core modules) | Raine Virta | |
into @core_module_dirs and @plugin_dirs | |||
2009-02-19 | remove whitespace | Raine Virta | |
2009-02-15 | + @bot.path and datafile methods | Giuseppe Bilotta | |
We provide two methods that make it more simple and elegant for botmodules to define paths relative to the bot's own directory (botclass) and to the BotModule's (assumed) non-registry directory. The first method is Irc::Bot#path(), which joins its arguments with the botclass. This method can be used to access datafiles in the bot directory with a much cleaner syntax; and since it uses File.join, the resulting paths are also properly formatted on each platform, which doesn't hurt. Each BotModule now also carries a dirname() method that should return the directory under botclass that holds the BotModule's datafiles. dirname() defaults to the BotModule's name(), but it can be overridden, e.g. for backwards compatibility (see the patch for the quotes plugin), or for BotModules that share their datafiles. Datafiles can be accessed using the BotModule#datafile() method that joins the botclass, the dirname() and whatever other argument is passed. | |||
2008-08-08 | plugins.rb: use IO.read instead of readlins+join gimmicks | Giuseppe Bilotta | |
2008-07-14 | plugins.rb: commands were being delegated even from ignored messages | Giuseppe Bilotta | |
2008-06-17 | * plugins.rb: avoid uninitialized warning on @priority | dmitry kim | |
2008-06-07 | recommit 33c336af346dc08b4f4f4951dd6eae7150cef481 po file per plugin | Yaohan Chen | |
each plugin uses its own po file, no change required for plugin source, Rakefile, plugin loader and gettext loader are modified to adjust to the change | |||
2008-06-06 | Revert "each plugin uses its own po file" | Yaohan Chen | |
This reverts commit 33c336af346dc08b4f4f4951dd6eae7150cef481. | |||
2008-06-05 | each plugin uses its own po file | Yaohan Chen | |
no modification in plugin source is needed, plugin loader is modified to automatically bind to the plugin's text domain updatepo task is modified to maintain per-plugin po file po files are updated and cleaned | |||
2008-04-13 | plugins: rework delegate() to accept options | Giuseppe Bilotta | |
2008-04-13 | + ModeChangeMessage class | Giuseppe Bilotta | |
2008-04-13 | + MotdMessage class | Giuseppe Bilotta | |
2008-04-12 | + delegate notice() for NoticeMessage | Giuseppe Bilotta | |
2008-04-12 | + WelcomeMessage class | Giuseppe Bilotta | |
2008-04-12 | plugins: make delegate() aware of ignored and fake messages | Giuseppe Bilotta | |
By convention, ignored messages will only be delegated to plugins with negative priority, while fake messages will only be delegated to plugins with positive priority. | |||
2008-04-12 | event delegation thresholds | doki_pen | |
2008-04-10 | Bug fix, priority order needs to be marked dirty when modules added. | doki_pen | |
2008-04-10 | plugins: reinstate debug lines in privmsg() | Giuseppe Bilotta | |
2008-04-10 | plugins: mark priorities dirty on rescan | Giuseppe Bilotta | |
2008-04-09 | Added event priorities to modules. | doki_pen | |
2008-04-08 | revert previous useless commit and rdocify documentation of accessors to ↵ | Giuseppe Bilotta | |
BotModule | |||
2008-04-07 | plugins: irc_delegate to do listen+actual delegate | Giuseppe Bilotta | |
2008-04-07 | plugins: message() delegate | Giuseppe Bilotta | |
2008-03-28 | plugins: expose the registry and the map handler as methods for the ↵ | Giuseppe Bilotta | |
BotModule class | |||
2008-03-27 | * handle invites properly -- forgot more than half the files :/ | Giuseppe Bilotta | |
2007-12-13 | plugins: register maps with full information accessible via @bot.plugins.maps | Giuseppe Bilotta | |
2007-12-13 | plugins: refactor common code in #map() and #map!() to auxiliary #do_map() ↵ | Giuseppe Bilotta | |
method | |||
2007-11-06 | Improved inspect methods all around | Giuseppe Bilotta | |
2007-09-12 | namespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::* | Giuseppe Bilotta | |
2007-09-12 | rdocument Irc::Plugins::BotModule | Giuseppe Bilotta | |
2007-09-02 | plugins.rb: use fast delegation hash | Giuseppe Bilotta | |
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). | |||
2007-09-02 | plugins.rb: set up fast delegation hash | Giuseppe Bilotta | |
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. | |||
2007-09-02 | plugins.rb: minor #delegate() optimization | Giuseppe Bilotta | |
2007-09-02 | + ctcp_listen plugin delegate | Giuseppe Bilotta | |
2007-08-26 | Report plugin loading failues as errors, not as warnings | Giuseppe Bilotta | |
2007-08-26 | Remove extra (un)bolding from 'help failed plugins' help text | Giuseppe Bilotta | |
2007-07-29 | Add missing space in message | Giuseppe Bilotta | |
2007-07-22 | fixed a copy-paste error causing incorrect count of failed plugins to be ↵ | Yaohan Chen | |
displayed | |||
2007-07-14 | - fixed an error due to copy and pasting causing the help message to list ↵ | Yaohan Chen | |
core modules twice without listing plugins | |||
2007-07-09 | integrated ruby-gettext | Yaohan Chen | |
modified a few files to allow translated messages created gettext template file initialized gettext files for Japanese and Simplified Chinese | |||
2007-05-10 | + (plugins) draft implementation of event hooks | Dmitry Kim | |