Age | Commit message (Collapse) | Author |
|
|
|
|
|
'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.
|
|
|
|
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.
|
|
|
|
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.
|
|
ruby 1.9 doesn't support colon as delimiter after when expression,
so we use newline as delimiter.
|
|
Array#nitems is gone in ruby 1.9, changed rbot code to use
Array.compact.size, which works in both 1.8 & 1.9
|
|
Add time parsing routines to Utils, to be used for human-to-computer
conversion of time offsets. Refactored and enhanced from the remind
plugin.
|
|
hangman: an unneeded letters accessor was defined
ircbot: restore initializations removed by previous commit
|
|
|
|
|
|
|
|
|
|
Don't break when the feed doesn't define categories.
|
|
If the registry data is not an Array, there will be no 'before'
information stored, so just use the normal output.
|
|
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'.
|
|
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.
|
|
The time command is already defined by the corresponding plugin, so use
gtime (like gdef and gcalc) for the Google clock.
|
|
|
|
|
|
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.
|
|
Some feeds have more than one category. Make all of them available in
the :categories stream key.
|
|
|
|
|
|
Because "provided by google_translate" is ugly.
|
|
Translator plugin supports babelfish, and getting rid of this plugin
allows us to use ´translate´ command for better purposes.
|
|
In which case we use Google translate's source language auto-detection feature.
|
|
|
|
|
|
|
|
The !!$? method fails because !!$? is true unless $? is nil, whereas we
want to test for a successful exit.
|
|
|
|
|
|
|
|
|
|
Director information was missing because IMDB had changed its 'info' div
box to include an id. Cope with it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Rather than hard-coding the handle, date and title formatting, make it
customizable via appropriate *_wrap keys.
|
|
|
|
Since the RSS update announcements do not expect any form of reply,
they could be considered the typical IRC message that should use
NOTICE rather than PRIVMSG.
However, for backwards compatibility and since NOTICEs are not always
appreciated (and since their handling from clients is not always
optimal, either), we still allow rss announces to use the traditional
method, and that is in fact selected as default. Explicit rss show
request always go with PRIVMSG.
|
|
|
|
Make use of the new custom filter loading procedure to move most of the
type definitions into its own file (data/rbot/filters/rss.rb) and only
define some essential ones in the plugin itself.
As an added benefit, user types can be loaded from filters/rss.rb and
rss/types.rb in the botclass directory.
|