summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2009-12-21add spotify pluginRaine Virta
2009-12-21lastfm: use Spotify from lib_spotifyRaine Virta
2009-12-21add lib_spotify pluginRaine Virta
2009-12-21lastfm: wrap artist name with bold in now_playing outputRaine Virta
2009-12-21lastfm: use CGI.escape on query part of spotify searchesRaine Virta
2009-12-21lastfm: remove dashes from Spotify queriesRaine Virta
2009-12-21lastfm: show spotify links on now_playing if possibleRaine Virta
2009-12-21lastfm: fix detection of invalid username on now_playingRaine Virta
2009-11-30When a translator fails to initialize, map its command to respond the reasonYaohan Chen
2009-11-30Simplify support for using "auto" to detect source languageYaohan Chen
When "auto" is used as source language, Google Translate detects the source language. However there is no need to hardcode Google Translate as the only translator supporting "auto". If another translator supports language detection, we can add "auto" to its supported source languages. If no translator in default_list supports translating from "auto", the existing code already responds with a message saying so.
2009-11-30translator: use google's RESTful interface for google_translateRaine Virta
2009-11-30translator: fix random bug caused by undefined variablesRaine Virta
2009-11-06irclog: don't kill logger thread on false can_log_onGiuseppe Bilotta
Change a return to a next. Leftover from the refactoring of the logger into its own thread. Thanks to gelraen for spotting this.
2009-11-05remote: bring up to date with changes in MessageMapperGiuseppe Bilotta
2009-11-05remote: use permit? instead of allow?Giuseppe Bilotta
We cannot signal back to the user from the UI anyway.
2009-11-03dice: restore + killed by ec5745fa7abd47b8ca12bd783b0759079dff9917Giuseppe Bilotta
2009-11-01urban: fix numpages being nil in some casesRaine Virta
2009-11-01tumblr: better guess for group name on ## channelsGiuseppe Bilotta
2009-11-01IRC Framework: Channel.npname()Giuseppe Bilotta
Returns the unprefixed part of a channel name
2009-11-01Ruby 1.9 compat: use String#[0,1] for channel prefixesGiuseppe Bilotta
This ensures that checks are correct in both Ruby 1.8 and 1.9
2009-10-21httputil.rb: fix http.no_expire_cache being IntegerValuefranz
It should be BooleanValue, otherwise false would get converted to 0 which would evaluate to true, meaning cache would never expire.
2009-10-21urban: fix page detection logicRaine Virta
numpages = s[%r{<div id='paginator'>.*?</div>}m].scan(/\d+/) ^ produces an error when regex returns nil
2009-10-21urban: fix regex for detecting an undefined termRaine Virta
2009-10-21Loop until connected in reconnect()Giuseppe Bilotta
Untrapped connect() failures would raise up to the mainloop, causing a burst of reconnect attempts without delay. Fix by rescuing in reconnect() and retrying after waiting.
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