summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-09-24search plugin: handle image in resultsGiuseppe Bilotta
Some results from Google can contain <img> tags as their 'text' part, so use the new ircify_html feature to display them.
2009-09-24ircify_html: options to handle img tagsGiuseppe Bilotta
2009-09-12search plugin: cleanup and fix results Array vs String mismatchGiuseppe Bilotta
2009-09-09basics: log the fact that we're not joining default channelsGiuseppe Bilotta
This makes it easier to understand why the bot is not joining when join_after_identify is set to true and the bot is not identifying.
2009-09-06ruby 1.9: Exception#to_strfranz
Since in ruby 1.9 Exception#to_str was removed, change it to to #to_s
2009-09-06ruby 1.9: fix method_defined?franz
method_defined? doesn't search in private methods, and :bound_targets is private, so change it to respond_to?(method, include_private=true)
2009-08-31search: show long definitions with 'google define:stuff'Giuseppe Bilotta
2009-08-31search plugin: update gdefGiuseppe Bilotta
2009-08-31tumplr plugin: first draftGiuseppe Bilotta
2009-08-30Revert "utils: try nokogiri/hpricot if hpricot is not available"Giuseppe Bilotta
This reverts commit 4ea25eba02d85b81dcee4302375d7d3e08cd52ac. Not only the patch was missing an essential part, but Nokogiri is not compatible enough with Hpricot anyway. Incompatibilities include doc/"style|script" raising an "Undefined namespace prefix" error and the non-existence of Hpricot::Elements. If we want to support Nokogiri we'll need to write code for it on purpose or redesign the Hpricot code so that it only uses the subset supported by Nokogiri.
2009-08-30url plugin: carry htmlinfo filtering output with the url_added eventGiuseppe Bilotta
2009-08-30httputil: POST respose '201 Created' is goodGiuseppe Bilotta
2009-08-30utils: try nokogiri/hpricot if hpricot is not availableGiuseppe Bilotta
2009-08-29search plugin: enhance 'lucky' outputGiuseppe Bilotta
'lucky' search only selects the first hit, so set hit to 1 and enable 'single' mode. Also rework the results output, and make a custom 'title -- url' for lucky mode.
2009-08-28search plugin: update google searchGiuseppe Bilotta
2009-08-27url plugin: only chop non-word characters on 404Giuseppe Bilotta
Chopping everything causes long delays for non-existing pages with long paths. Since the purpose of the retry-with-chop is to get the right URL when punctuation is added after it, the solution is to only chop non-word characters. This has to be done on the unescaped URL because otherwise non-word characters like " that expand to %22 will not be chopped.
2009-08-27utils: avoid namespace conflictGiuseppe Bilotta
The time parsing refactoring introduced an unpleasant namespace conflict by defining Utils::Time. Eliminate it by renaming it to ParseTime
2009-08-27reaction plugin: shorter help for repliesGiuseppe Bilotta
2009-08-27reaction plugin: 'ruby:' repliesGiuseppe Bilotta
A reply can be prefixed with 'ruby:' to signify that it's a short ruby snippet to be eval()ed. Adding these reactions is protected by default.
2009-08-26gettext: fix empty LANGUAGE env varfranz
When LANGUAGE env var is set to empty value, it breaks gettext in ruby, so we unset it if it's empty.
2009-08-26ruby 1.9: fix *methods.include?franz
Since in 1.9 methods arrays have symbols instead of strings, fix it by changing into respond_to? and method_defined?
2009-08-26ruby 1.9: disable the Singleton monkeypatch for 1.9franz
this monkeypatch doesn't work on 1.9 - Singleton has no _load method
2009-08-26ruby 1.9: monkeypatch MonitorMixin and ConditionVariablefranz
ruby 1.9's ConditionVariable#wait is not implemented for timeout != nil, this patch adds an implementation for it (see ruby-core:15847) Also, since MonitorMixin is included into TCPSocket in rbot, and TCPSocket#send != Object#send in ruby 1.9, i changed that to use __send__.
2009-08-26ruby 1.9: fix Integer(nil)franz
in 1.9, Integer(nil) raises TypeError, so we change "%d" to "%s"
2009-08-26ruby 1.9: convert Exception to string explicitlyfranz
changed "string + exception" to "string #{e}", the former yields 'can't convert <e> into String' in ruby 1.9
2009-08-26ircbot: fix indentation errorfranz
2009-08-26ruby 1.9: get rid of colons in case statementsfranz
ruby 1.9 doesn't support colon as delimiter after when expression, so we use newline as delimiter.
2009-08-26ruby 1.9: get rid of Array#nitemsfranz
Array#nitems is gone in ruby 1.9, changed rbot code to use Array.compact.size, which works in both 1.8 & 1.9
2009-08-26Utils: time parsing routinesGiuseppe Bilotta
Add time parsing routines to Utils, to be used for human-to-computer conversion of time offsets. Refactored and enhanced from the remind plugin.
2009-08-16Suppress warnings about unitialized variablesGiuseppe Bilotta
hangman: an unneeded letters accessor was defined ircbot: restore initializations removed by previous commit
2009-08-14ircbot: clean up ping timings on connectGiuseppe Bilotta
2009-08-13nickserv: add 'ghosted' to nickserv.nick_availGiuseppe Bilotta
2009-08-13basics: UI reconnect commandGiuseppe Bilotta
2009-08-12Better handling of MessageMapper failuresGiuseppe 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-30extends: bring conjoin to EnumerableGiuseppe Bilotta
Put #conjoin() in the Enumerable module, so that it can be shared by all enumerables (e.g. ranges). Since #size() is not necessarily present, its use is replaced by #count(), the result of which is cached because it can be slow on objects missing #size().
2009-06-29core/utils/extends.rb: add #conjoin for ArrayAdam James
2009-06-16lib/rbot/plugins.rb: remove executable bitAdam James
2009-06-12search: Google changed their WAP addressGiuseppe Bilotta
2009-06-06* (gettext) relaxed check for bound_target() existancedmitry kim
2009-06-06* (plugins) note: misc cleanupsdmitry kim
2009-06-06+ (plugins) notedmitry kim
2009-06-02rss plugin: categories fixGiuseppe Bilotta
Don't break when the feed doesn't define categories.
2009-05-24seen plugin: check if there's a previous action before using itGiuseppe Bilotta
If the registry data is not an Array, there will be no 'before' information stored, so just use the normal output.
2009-05-22factoids: fix error message when no fact is foundGiuseppe Bilotta
When the search is called as 'facts search' the 'words' parameter is not defined, so customize the message depending on wether we have that or 'rx'.
2009-05-21multiple plugins: Changes to remove parenthesize warnings.David Gadling
All of these modules/plugins were generating warnings like this: warning: parenthesize argument(s) for future version This patch should fix all the warnings without affecting functionality.
2009-05-20search: gtime instead of timeGiuseppe Bilotta
The time command is already defined by the corresponding plugin, so use gtime (like gdef and gcalc) for the Google clock.
2009-05-20search: Added a time command that gets the time from Google. !time londonDavid Gadling
2009-05-19quiz: Make maximum number of jokers configurable.David Gadling
2009-05-19youtube: fixes for older XML parsersDavid Gadling
REXML in (at least) Ruby 1.8.6 doesn't support the @attr xpath to get an attribute value. Use the slightly more verbose way of doing it.
2009-05-16rss plugin: categoriesGiuseppe Bilotta
Some feeds have more than one category. Make all of them available in the :categories stream key.