]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/log
user/henk/code/ruby/rbot.git
17 years agocore/auth: missing help for who is
Giuseppe Bilotta [Sun, 23 Sep 2007 23:24:19 +0000 (23:24 +0000)]
core/auth: missing help for who is

17 years agocore/userdata: with_botdata method
Giuseppe Bilotta [Sun, 23 Sep 2007 23:24:17 +0000 (23:24 +0000)]
core/userdata: with_botdata method

17 years agocore/userdata: bot_data -> botdata
Giuseppe Bilotta [Sun, 23 Sep 2007 23:24:15 +0000 (23:24 +0000)]
core/userdata: bot_data -> botdata

17 years agoNew Auth Framework: use Botuser#default? and owner? methods
Giuseppe Bilotta [Sun, 23 Sep 2007 10:57:12 +0000 (10:57 +0000)]
New Auth Framework: use Botuser#default? and owner? methods

17 years agoNew Auth Framework: BotUser#default? and owner? methods
Giuseppe Bilotta [Sun, 23 Sep 2007 10:57:10 +0000 (10:57 +0000)]
New Auth Framework: BotUser#default? and owner? methods

17 years agoUserData cote botmodule to handle user data storage/retrieval
Giuseppe Bilotta [Sun, 23 Sep 2007 10:57:08 +0000 (10:57 +0000)]
UserData cote botmodule to handle user data storage/retrieval

17 years agoregistry.rb: don't create registry file unless accessing it for writing
Giuseppe Bilotta [Sat, 22 Sep 2007 15:15:43 +0000 (15:15 +0000)]
registry.rb: don't create registry file unless accessing it for writing

17 years agomessage.rb: fix "I'm Stupid(TM)" bug in [1100]
Giuseppe Bilotta [Sat, 22 Sep 2007 13:44:07 +0000 (13:44 +0000)]
message.rb: fix "I'm Stupid(TM)" bug in [1100]

17 years ago* (botuser) generalize() netmasks on transient->permanent
Dmitry Kim [Sat, 22 Sep 2007 13:32:07 +0000 (13:32 +0000)]
* (botuser) generalize() netmasks on transient->permanent

17 years ago+ (irc) generalize() method for Netmask class
Dmitry Kim [Sat, 22 Sep 2007 13:31:20 +0000 (13:31 +0000)]
+ (irc) generalize() method for Netmask class

17 years agoNew Auth Framework: add make_permanent() and related methods to make a transient...
Giuseppe Bilotta [Sat, 22 Sep 2007 07:12:46 +0000 (07:12 +0000)]
New Auth Framework: add make_permanent() and related methods to make a transient BotUser permanent

17 years agoNew Auth Framework: please document methods
Giuseppe Bilotta [Sat, 22 Sep 2007 07:12:44 +0000 (07:12 +0000)]
New Auth Framework: please document methods

17 years agoreaction plugin: uniformize auth_path for trigger removal commands
Giuseppe Bilotta [Sat, 22 Sep 2007 07:12:43 +0000 (07:12 +0000)]
reaction plugin: uniformize auth_path for trigger removal commands

17 years agoreaction plugin: order reaction candidates by number of captures as secondary order
Giuseppe Bilotta [Sat, 22 Sep 2007 07:12:41 +0000 (07:12 +0000)]
reaction plugin: order reaction candidates by number of captures as secondary order

17 years agoreaction plugin: no more :stuff, but :before and :after for the pre and postmatch...
Giuseppe Bilotta [Fri, 21 Sep 2007 19:45:08 +0000 (19:45 +0000)]
reaction plugin: no more :stuff, but :before and :after for the pre and postmatch text

17 years agoreaction plugin: it's %{key}, not %%{key}
Giuseppe Bilotta [Fri, 21 Sep 2007 19:45:02 +0000 (19:45 +0000)]
reaction plugin: it's %{key}, not %%{key}

17 years ago+ (botuser + maskdb) fast netmask lookup + supplemental fixes for transient users
Dmitry Kim [Fri, 21 Sep 2007 18:07:09 +0000 (18:07 +0000)]
+ (botuser + maskdb) fast netmask lookup + supplemental fixes for transient users

17 years ago* (core/auth) more debug logging on exceptions
Dmitry Kim [Fri, 21 Sep 2007 18:02:54 +0000 (18:02 +0000)]
* (core/auth) more debug logging on exceptions

17 years agoNew Auth Framework: auth core botmodule was missing an m.reply
Giuseppe Bilotta [Fri, 21 Sep 2007 15:35:15 +0000 (15:35 +0000)]
New Auth Framework: auth core botmodule was missing an m.reply

17 years agoNew Auth Framework: auth core botmodule was failing when someone asked something...
Giuseppe Bilotta [Fri, 21 Sep 2007 15:35:13 +0000 (15:35 +0000)]
New Auth Framework: auth core botmodule was failing when someone asked something about a nonexisting botuser

17 years agoreaction plugin: quoted multi-word triggers in [1189] were not being unquoted when...
Giuseppe Bilotta [Fri, 21 Sep 2007 14:24:19 +0000 (14:24 +0000)]
reaction plugin: quoted multi-word triggers in [1189] were not being unquoted when setting up the trigger

17 years agoreaction plugin: use the longest-matching trigger, not the first one found
Giuseppe Bilotta [Fri, 21 Sep 2007 14:24:17 +0000 (14:24 +0000)]
reaction plugin: use the longest-matching trigger, not the first one found

17 years agoreaction plugin: make triggers case insensitive
Giuseppe Bilotta [Fri, 21 Sep 2007 13:32:53 +0000 (13:32 +0000)]
reaction plugin: make triggers case insensitive

17 years ago+ (core/auth) "!who is :user" syntax
Dmitry Kim [Fri, 21 Sep 2007 11:07:52 +0000 (11:07 +0000)]
+ (core/auth) "!who is :user" syntax

17 years agoUtils.decode_html_entities: get rid of commented table and implement latin-1 (and...
Giuseppe Bilotta [Fri, 21 Sep 2007 09:38:35 +0000 (09:38 +0000)]
Utils.decode_html_entities: get rid of commented table and implement latin-1 (and then some) decoding

17 years agoUtils: we are an UTF-8 aware bot now, no need to ASCIIfy HTML entities
Giuseppe Bilotta [Fri, 21 Sep 2007 09:25:14 +0000 (09:25 +0000)]
Utils: we are an UTF-8 aware bot now, no need to ASCIIfy HTML entities

17 years agoUtils.decode_html_entities: fix decoding of unknown symbols
Giuseppe Bilotta [Fri, 21 Sep 2007 09:20:11 +0000 (09:20 +0000)]
Utils.decode_html_entities: fix decoding of unknown symbols

17 years agoreaction plugin: range attribute should be an accessor, not a reader
Giuseppe Bilotta [Fri, 21 Sep 2007 07:25:40 +0000 (07:25 +0000)]
reaction plugin: range attribute should be an accessor, not a reader

17 years agoreaction plugin: revert [1204], having r.range == nil is an actually supported scenar...
Giuseppe Bilotta [Fri, 21 Sep 2007 07:08:33 +0000 (07:08 +0000)]
reaction plugin: revert [1204], having r.range == nil is an actually supported scenario, and if it happens unexpectedly it's some other bug

17 years ago* (plugins/url) url.display_link_info now also applies for error messages
Dmitry Kim [Fri, 21 Sep 2007 03:39:13 +0000 (03:39 +0000)]
* (plugins/url) url.display_link_info now also applies for error messages

17 years ago* (plugins/reaction) fixed r.range == nil case
Dmitry Kim [Fri, 21 Sep 2007 03:36:13 +0000 (03:36 +0000)]
* (plugins/reaction) fixed r.range == nil case

17 years agoreaction plugin: captures in regexp are now available as match1, match2, etc
Giuseppe Bilotta [Thu, 20 Sep 2007 15:24:58 +0000 (15:24 +0000)]
reaction plugin: captures in regexp are now available as match1, match2, etc

17 years agoreaction plugin: allow moving replies from one trigger to another
Giuseppe Bilotta [Thu, 20 Sep 2007 15:10:08 +0000 (15:10 +0000)]
reaction plugin: allow moving replies from one trigger to another

17 years agoreaction plugin: chance was not actually optional
Giuseppe Bilotta [Thu, 20 Sep 2007 14:09:29 +0000 (14:09 +0000)]
reaction plugin: chance was not actually optional

17 years agoreaction plugin: reply ranges were not being updated when adding a new reply
Giuseppe Bilotta [Thu, 20 Sep 2007 13:58:21 +0000 (13:58 +0000)]
reaction plugin: reply ranges were not being updated when adding a new reply

17 years agoreaction plugin: it is now possible to change the chance of a reaction by 'adding...
Giuseppe Bilotta [Thu, 20 Sep 2007 13:49:19 +0000 (13:49 +0000)]
reaction plugin: it is now possible to change the chance of a reaction by 'adding' it again

17 years agoreaction plugin: update help
Giuseppe Bilotta [Thu, 20 Sep 2007 13:49:18 +0000 (13:49 +0000)]
reaction plugin: update help

17 years agoreaction plugin: missing \! in string-to-chance conversion
Giuseppe Bilotta [Thu, 20 Sep 2007 13:49:16 +0000 (13:49 +0000)]
reaction plugin: missing \! in string-to-chance conversion

17 years agoreaction plugin: author/date/channel information are reply, not trigger specific...
Giuseppe Bilotta [Thu, 20 Sep 2007 13:49:15 +0000 (13:49 +0000)]
reaction plugin: author/date/channel information are reply, not trigger specific. Add command to show them

17 years agoreaction plugin: triggers can have multiple reactions, each with a different percentage
Giuseppe Bilotta [Thu, 20 Sep 2007 13:49:13 +0000 (13:49 +0000)]
reaction plugin: triggers can have multiple reactions, each with a different percentage

If the sum of all the percentages is less than 1, then there is chance that nothing
will be replied. Otherwise, the percentage is just the relative chance that each
reply will be selected.

17 years agourl plugin: bail out early when no urls were found
Giuseppe Bilotta [Wed, 19 Sep 2007 21:19:46 +0000 (21:19 +0000)]
url plugin: bail out early when no urls were found

17 years agourl plugin: only extract URIs for the schemes we're interested in (http[s])
Giuseppe Bilotta [Wed, 19 Sep 2007 21:19:45 +0000 (21:19 +0000)]
url plugin: only extract URIs for the schemes we're interested in (http[s])

17 years agocore: only WHO on join if it's the bot itself joining a channel
Giuseppe Bilotta [Wed, 19 Sep 2007 20:45:41 +0000 (20:45 +0000)]
core: only WHO on join if it's the bot itself joining a channel

17 years agoreaction plugin: only react to unreplied messages
Giuseppe Bilotta [Wed, 19 Sep 2007 20:45:35 +0000 (20:45 +0000)]
reaction plugin: only react to unreplied messages

17 years agoreaction plugin: check for existing reaction when adding a new one
Giuseppe Bilotta [Wed, 19 Sep 2007 20:45:32 +0000 (20:45 +0000)]
reaction plugin: check for existing reaction when adding a new one

17 years agoreaction plugin: new add syntax
Giuseppe Bilotta [Wed, 19 Sep 2007 20:45:26 +0000 (20:45 +0000)]
reaction plugin: new add syntax

17 years agoreaction plugin: one-liner reply/reaction to in-channel messages/actions. Initial...
Giuseppe Bilotta [Wed, 19 Sep 2007 18:03:14 +0000 (18:03 +0000)]
reaction plugin: one-liner reply/reaction to in-channel messages/actions. Initial commit

17 years agoircify_html: minimal support for li tags
Giuseppe Bilotta [Tue, 18 Sep 2007 23:40:46 +0000 (23:40 +0000)]
ircify_html: minimal support for li tags

17 years agofirst_html_par: after-paragraph matches should prefer divs and spans to other elements
Giuseppe Bilotta [Tue, 18 Sep 2007 23:40:44 +0000 (23:40 +0000)]
first_html_par: after-paragraph matches should prefer divs and spans to other elements

17 years agofirst_html_par: make Hpricot handling more robust
Giuseppe Bilotta [Tue, 18 Sep 2007 23:40:42 +0000 (23:40 +0000)]
first_html_par: make Hpricot handling more robust

17 years agofirst_html_par: constify the 'after par' searches with Hpricot
Giuseppe Bilotta [Tue, 18 Sep 2007 17:31:29 +0000 (17:31 +0000)]
first_html_par: constify the 'after par' searches with Hpricot

17 years agoutils: require 'hpricot' the second time, not 'htmlentities' again
Giuseppe Bilotta [Tue, 18 Sep 2007 17:31:28 +0000 (17:31 +0000)]
utils: require 'hpricot' the second time, not 'htmlentities' again

17 years agofirst_html_par: it's doc.root.search, not doc.root.each
Giuseppe Bilotta [Tue, 18 Sep 2007 17:31:26 +0000 (17:31 +0000)]
first_html_par: it's doc.root.search, not doc.root.each

17 years agofirst_html_par: build lists 'manually' when using Hpricot
Giuseppe Bilotta [Tue, 18 Sep 2007 17:31:24 +0000 (17:31 +0000)]
first_html_par: build lists 'manually' when using Hpricot

Hpricot selectors (like doc/"css path") don't return elements in their natural (depth-first) order. Use custom searches from the root of the document to achieve this.

17 years agoHTML processing refactoring: remove obsolete comment
Giuseppe Bilotta [Tue, 18 Sep 2007 13:24:59 +0000 (13:24 +0000)]
HTML processing refactoring: remove obsolete comment

17 years agoextends: String#ircify_html now has an option to obey non-breakable spaces or turn...
Giuseppe Bilotta [Tue, 18 Sep 2007 13:24:55 +0000 (13:24 +0000)]
extends: String#ircify_html now has an option to obey non-breakable spaces or turn them into normal spaces

This option is used e.g. by the dict plugin to reduce the excessive whitespace in oxford entries.

17 years agodict plugin: echo oxford definitions
Giuseppe Bilotta [Tue, 18 Sep 2007 12:06:53 +0000 (12:06 +0000)]
dict plugin: echo oxford definitions

17 years agodict plugin: oxford isn't british only anymore
Giuseppe Bilotta [Tue, 18 Sep 2007 12:06:52 +0000 (12:06 +0000)]
dict plugin: oxford isn't british only anymore

17 years agodict plugin: fix demauro word existence check
Giuseppe Bilotta [Tue, 18 Sep 2007 12:06:50 +0000 (12:06 +0000)]
dict plugin: fix demauro word existence check

17 years agodict plugin: demauro can actually have spaces in the leftmost part of the entry
Giuseppe Bilotta [Tue, 18 Sep 2007 12:06:48 +0000 (12:06 +0000)]
dict plugin: demauro can actually have spaces in the leftmost part of the entry

17 years agohttputil: promote all Exceptions to RuntimeErrors so they can be caught with inline...
Giuseppe Bilotta [Tue, 18 Sep 2007 11:05:01 +0000 (11:05 +0000)]
httputil: promote all Exceptions to RuntimeErrors so they can be caught with inline rescue

17 years agoHpricot first par: it's el[:class], not el.class
Giuseppe Bilotta [Tue, 18 Sep 2007 11:04:58 +0000 (11:04 +0000)]
Hpricot first par: it's el[:class], not el.class

17 years agoHTML processing refactoring: url plugin: only add encoding and size information to...
Giuseppe Bilotta [Tue, 18 Sep 2007 07:05:48 +0000 (07:05 +0000)]
HTML processing refactoring: url plugin: only add encoding and size information to pages with title if url.first_par is true

17 years agoHTML processing refactoring: fix options passed by Utils.get_string_html_info to...
Giuseppe Bilotta [Tue, 18 Sep 2007 06:15:56 +0000 (06:15 +0000)]
HTML processing refactoring: fix options passed by Utils.get_string_html_info to ircify_first_html_par

17 years agoHTML processing refactoring: Utils.get_first_pars now uses Utils.get_html_info
Giuseppe Bilotta [Tue, 18 Sep 2007 06:15:54 +0000 (06:15 +0000)]
HTML processing refactoring: Utils.get_first_pars now uses Utils.get_html_info

17 years agobasics: it's @bot.myself, not just myself
Giuseppe Bilotta [Tue, 18 Sep 2007 06:15:52 +0000 (06:15 +0000)]
basics: it's @bot.myself, not just myself

17 years agoHTML processing refactoring: Utils.get_html_info and related methods factored out...
Giuseppe Bilotta [Tue, 18 Sep 2007 06:15:49 +0000 (06:15 +0000)]
HTML processing refactoring: Utils.get_html_info and related methods factored out of the url plugin

17 years agoHTML processing refactoring: ensure HTML title works with and without Hpricot
Giuseppe Bilotta [Tue, 18 Sep 2007 06:15:47 +0000 (06:15 +0000)]
HTML processing refactoring: ensure HTML title works with and without Hpricot

17 years agoHTML processing refactoring: HTML title extraction is now a String method
Giuseppe Bilotta [Tue, 18 Sep 2007 06:15:45 +0000 (06:15 +0000)]
HTML processing refactoring: HTML title extraction is now a String method

17 years agoregistry: it's @recovery, not @recover
Giuseppe Bilotta [Mon, 17 Sep 2007 10:09:39 +0000 (10:09 +0000)]
registry: it's @recovery, not @recover

17 years agoshortenurls plugin: service name can be nil
Giuseppe Bilotta [Mon, 17 Sep 2007 06:17:18 +0000 (06:17 +0000)]
shortenurls plugin: service name can be nil

Thus, convert it to sym after ||ing it with m.plugin, not before

17 years ago* (plugins/url) url logging should not depend on url info display
Dmitry Kim [Sun, 16 Sep 2007 23:09:11 +0000 (23:09 +0000)]
* (plugins/url) url logging should not depend on url info display

17 years ago* (plugins/url) get_title_for_url(uri_str, opts={})
Dmitry Kim [Sun, 16 Sep 2007 22:36:04 +0000 (22:36 +0000)]
* (plugins/url) get_title_for_url(uri_str, opts={})

17 years agoUpdate REQUIREMENTS
Giuseppe Bilotta [Sun, 16 Sep 2007 12:54:08 +0000 (12:54 +0000)]
Update REQUIREMENTS

17 years agourl plugin: add 'url info' as a synonym for 'urls info', and document the command
Giuseppe Bilotta [Sun, 16 Sep 2007 06:44:19 +0000 (06:44 +0000)]
url plugin: add 'url info' as a synonym for 'urls info', and document the command

17 years agotwitter plugin: set update source to 'rbot'
Giuseppe Bilotta [Sun, 16 Sep 2007 06:44:17 +0000 (06:44 +0000)]
twitter plugin: set update source to 'rbot'

Since September 17 Twitter.com supports us as an 'official' client, and we can use 'rbot' as the source for updates coming from rbot.

17 years agoNew Auth Framework: catch possible error when trying to create transient botuser
Giuseppe Bilotta [Sat, 15 Sep 2007 22:25:22 +0000 (22:25 +0000)]
New Auth Framework: catch possible error when trying to create transient botuser

17 years agorss plugin: add support for twitter format
Giuseppe Bilotta [Sat, 15 Sep 2007 10:35:34 +0000 (10:35 +0000)]
rss plugin: add support for twitter format

Twitter feeds can use the generic output format, but there is no need to 'cap' their titles because of the hardcoded length limits imposed by Twitter

17 years agotwitter plugin: don't update status if message length is > 160 characters, and give...
Giuseppe Bilotta [Sat, 15 Sep 2007 10:10:30 +0000 (10:10 +0000)]
twitter plugin: don't update status if message length is > 160 characters, and give a warning when > 140

Twitter has a hard limit for message lengths at 160, and the recommended maximum length is 140 characters, so enforce the hard limit and warn when the soft limit is passed

17 years agotwitter plugin: customize count of status updates displayed, defaulting to 1
Giuseppe Bilotta [Sat, 15 Sep 2007 10:10:28 +0000 (10:10 +0000)]
twitter plugin: customize count of status updates displayed, defaulting to 1

17 years agolastfm plugin: update to support the new HTML in author/band descriptions
Giuseppe Bilotta [Fri, 14 Sep 2007 22:51:07 +0000 (22:51 +0000)]
lastfm plugin: update to support the new HTML in author/band descriptions

17 years agotwitter plugin: minor refactoring
Giuseppe Bilotta [Fri, 14 Sep 2007 22:14:06 +0000 (22:14 +0000)]
twitter plugin: minor refactoring

17 years agotwitter plugin: whitespace cleanup
Giuseppe Bilotta [Fri, 14 Sep 2007 22:14:04 +0000 (22:14 +0000)]
twitter plugin: whitespace cleanup

17 years agotwitter plugin: identify ourselves as the twitter client
Giuseppe Bilotta [Fri, 14 Sep 2007 22:14:02 +0000 (22:14 +0000)]
twitter plugin: identify ourselves as the twitter client

17 years agotwitter plugin: CGI.escape, not URI.escape (thanks hlb)
Giuseppe Bilotta [Fri, 14 Sep 2007 21:56:20 +0000 (21:56 +0000)]
twitter plugin: CGI.escape, not URI.escape (thanks hlb)

17 years agotwitter plugin: don't cache status
Giuseppe Bilotta [Fri, 14 Sep 2007 21:56:18 +0000 (21:56 +0000)]
twitter plugin: don't cache status

17 years agotwitter plugin: display time elapsed instead of date in status
Giuseppe Bilotta [Fri, 14 Sep 2007 21:56:17 +0000 (21:56 +0000)]
twitter plugin: display time elapsed instead of date in status

17 years agohttputil: document 'headers' option to get_* methods
Giuseppe Bilotta [Fri, 14 Sep 2007 21:56:15 +0000 (21:56 +0000)]
httputil: document 'headers' option to get_* methods

17 years agotwitter plugin: initial commit (#145 with changes)
Giuseppe Bilotta [Fri, 14 Sep 2007 11:50:55 +0000 (11:50 +0000)]
twitter plugin: initial commit (#145 with changes)

17 years agoUpdate .po files
Giuseppe Bilotta [Fri, 14 Sep 2007 11:50:51 +0000 (11:50 +0000)]
Update .po files

17 years agoconfig core botmodule: document 'nick', 'status'
Giuseppe Bilotta [Fri, 14 Sep 2007 11:50:47 +0000 (11:50 +0000)]
config core botmodule: document 'nick', 'status'

17 years agoshortenurls plugin: shortenurls.services_blacklist config variable
Giuseppe Bilotta [Thu, 13 Sep 2007 21:47:52 +0000 (21:47 +0000)]
shortenurls plugin: shortenurls.services_blacklist config variable

17 years agoshortenurls plugin: handle failing services by trying other services, and make return...
Giuseppe Bilotta [Thu, 13 Sep 2007 21:47:50 +0000 (21:47 +0000)]
shortenurls plugin: handle failing services by trying other services, and make return values more uniform

17 years agohttputil: primitve cookie support
Giuseppe Bilotta [Thu, 13 Sep 2007 13:25:51 +0000 (13:25 +0000)]
httputil: primitve cookie support

If a redirection sets a cookie, set the cookie in the redirected request

17 years agoMore rdoc-ification
Giuseppe Bilotta [Thu, 13 Sep 2007 08:22:30 +0000 (08:22 +0000)]
More rdoc-ification

17 years agomore rdoc-ification
Giuseppe Bilotta [Thu, 13 Sep 2007 00:14:53 +0000 (00:14 +0000)]
more rdoc-ification

17 years agonamespaces: simplify Irc::Bot::Auth manager singleton name and accessor
Giuseppe Bilotta [Thu, 13 Sep 2007 00:14:49 +0000 (00:14 +0000)]
namespaces: simplify Irc::Bot::Auth manager singleton name and accessor

17 years agonamespaces: provide backwards compatibility methods for BotConfig.register and relate...
Giuseppe Bilotta [Wed, 12 Sep 2007 22:31:18 +0000 (22:31 +0000)]
namespaces: provide backwards compatibility methods for BotConfig.register and related classes

17 years agonamespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::*
Giuseppe Bilotta [Wed, 12 Sep 2007 22:31:15 +0000 (22:31 +0000)]
namespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::*

17 years agoIrc::IrcSocket -> Irc::Socket
Giuseppe Bilotta [Wed, 12 Sep 2007 19:17:24 +0000 (19:17 +0000)]
Irc::IrcSocket -> Irc::Socket