]>
git.netwichtig.de Git - user/henk/code/ruby/rbot.git/log
Giuseppe Bilotta [Sun, 29 Jun 2008 19:55:59 +0000 (21:55 +0200)]
message.rb: suppress warning about duplicate method
Giuseppe Bilotta [Sun, 29 Jun 2008 18:19:41 +0000 (20:19 +0200)]
* fix handling of IDENTIFY_MSG
When a server has IDENTIFY-MSG, we would expect identification in any
PRIVMSG or NOTICE, even on those generated from the bot. This caused
lots of spurious warnings, and would lead to mislogging when a
bot-generated message started with + or -.
Fix this by only handling IDENTIFY-MSG on server-generated messages.
Giuseppe Bilotta [Sat, 28 Jun 2008 19:06:29 +0000 (21:06 +0200)]
ircbot.rb: @bot.topic() can also be used to retrieve topic information instead of setting it
Giuseppe Bilotta [Sat, 28 Jun 2008 19:01:19 +0000 (21:01 +0200)]
New IRC framework: allow RPL_TOPIC(_INFO) for channels we are not on, since some networks allow it
Giuseppe Bilotta [Fri, 27 Jun 2008 17:03:03 +0000 (19:03 +0200)]
figlet plugin: make it more friendly to external usage
Giuseppe Bilotta [Thu, 26 Jun 2008 19:35:19 +0000 (21:35 +0200)]
ircbot.rb: make #mode()'s third argument optional
Giuseppe Bilotta [Thu, 26 Jun 2008 17:18:06 +0000 (19:18 +0200)]
bans plugin: fix bans rm badword :regexp
dmitry kim [Thu, 26 Jun 2008 17:00:07 +0000 (21:00 +0400)]
* plugins/bans: show the bad word message in channel before the (kick)ban
dmitry kim [Thu, 26 Jun 2008 16:47:15 +0000 (20:47 +0400)]
* plugins/bans: fix timed bans
Giuseppe Bilotta [Thu, 26 Jun 2008 12:49:15 +0000 (14:49 +0200)]
Update PO
Giuseppe Bilotta [Thu, 26 Jun 2008 12:45:41 +0000 (14:45 +0200)]
config.rb: localize git date in version
Giuseppe Bilotta [Wed, 25 Jun 2008 22:23:23 +0000 (00:23 +0200)]
message.rb: saner \#inspect() for BasicUserMessage and derivatives
Giuseppe Bilotta [Wed, 25 Jun 2008 21:01:29 +0000 (23:01 +0200)]
markov plugin: use plain message
dmitry kim [Wed, 25 Jun 2008 20:03:38 +0000 (00:03 +0400)]
* (plugins/urban): fix the errors introduced by jsn- in the previous commit
Spencer RInehart [Wed, 25 Jun 2008 19:21:08 +0000 (15:21 -0400)]
urban plugin: when urbandictionary.com goes offline, don't throw errors.
Giuseppe Bilotta [Wed, 25 Jun 2008 19:33:24 +0000 (21:33 +0200)]
script plugin: store channels as strings
Yaohan Chen [Wed, 25 Jun 2008 19:27:38 +0000 (15:27 -0400)]
markov plugin: do learning in one thread, instead of threading for each message
Yaohan Chen [Tue, 24 Jun 2008 17:45:56 +0000 (13:45 -0400)]
allow multi-line (artificial) messages be delegated and handled
Giuseppe Bilotta [Tue, 24 Jun 2008 17:32:09 +0000 (19:32 +0200)]
extends.rb: suppress warning
Giuseppe Bilotta [Tue, 24 Jun 2008 16:53:45 +0000 (18:53 +0200)]
ircbot.rb: create the appropriate directories when updating botclass dir from template
Giuseppe Bilotta [Tue, 24 Jun 2008 15:30:04 +0000 (17:30 +0200)]
bans plugin: badword checks on plain message
Giuseppe Bilotta [Tue, 24 Jun 2008 15:27:30 +0000 (17:27 +0200)]
message handling: improve IRC format handling for received messages
Rather than stripping colors all around and keeping other format codes,
we only strip initial and final formatting before parsing the message.
We store the original, unstripped message in #logmessage() and a
fully stripped copy of the message in #plainmessage()
This means that most plugins will now have full formatting of arguments
preserved, while stupid IRC usage of formatting whole lines will not
interfere with bot usage. Plugins that need a fully stripped version of
the message can still access it.
Giuseppe Bilotta [Tue, 24 Jun 2008 13:47:40 +0000 (15:47 +0200)]
lastfm plugin: code cleanup and warning suppression
Giuseppe Bilotta [Tue, 24 Jun 2008 13:45:17 +0000 (15:45 +0200)]
figlet plugin: fix font usage and defaults
Giuseppe Bilotta [Tue, 24 Jun 2008 13:30:54 +0000 (15:30 +0200)]
ircsocket.rb: use syswrite since ruby's buffered io is racy
In some situations a PRIVMSG could be output twice in sequence with no
intervening newline when using the Socket#puts function. Use syswrite to
skip Ruby's buffered IO.
Yaohan Chen [Tue, 24 Jun 2008 03:29:51 +0000 (23:29 -0400)]
fake_message duplicates m.reply and m.in_thread from the :from message
this makes it possible to create a fake message, override its reply method in order
to get its "return value", even if the fake message will be handled by creating
another fake message.
Yaohan Chen [Mon, 23 Jun 2008 23:30:29 +0000 (19:30 -0400)]
fake messages will use the originating message's reply method
this allows shell plugin to capture replies of a command even if this command is
run because of a fake message
Giuseppe Bilotta [Tue, 24 Jun 2008 10:08:40 +0000 (12:08 +0200)]
ircbot.rb: copy missing template files on startup
Giuseppe Bilotta [Tue, 24 Jun 2008 09:01:48 +0000 (11:01 +0200)]
config.rb: system wide overrides in /etc/rbot.conf
Giuseppe Bilotta [Tue, 24 Jun 2008 00:24:14 +0000 (02:24 +0200)]
PO update
Marc Lagrange [Mon, 23 Jun 2008 23:58:30 +0000 (01:58 +0200)]
French translation
Giuseppe Bilotta [Tue, 24 Jun 2008 00:17:56 +0000 (02:17 +0200)]
figlet plugin: toilet support
Giuseppe Bilotta [Mon, 23 Jun 2008 23:33:48 +0000 (01:33 +0200)]
spell plugin: command line option
Giuseppe Bilotta [Mon, 23 Jun 2008 23:20:17 +0000 (01:20 +0200)]
spell plugin: use case instead of if/elsif/.../end and wrap in rescue
Giuseppe Bilotta [Mon, 23 Jun 2008 22:56:37 +0000 (00:56 +0200)]
spell plugin: spell program is a config option
Spencer RInehart [Mon, 23 Jun 2008 22:20:42 +0000 (18:20 -0400)]
Follow pagination of results
Casey Link [Mon, 23 Jun 2008 18:58:00 +0000 (14:58 -0400)]
lastfm plugin: tries to parse the current station. will show just listened track if real time data isn't there.
Yaohan Chen [Mon, 23 Jun 2008 20:30:59 +0000 (16:30 -0400)]
Set GetText.cached = false so that mo files are reloaded when setting locale
Casey Link [Mon, 23 Jun 2008 22:00:08 +0000 (18:00 -0400)]
dict.rb plugin: fixes the oxford parser so it doesn't spit out a bunch of extra crap
before:
[13:45:29] <insanity> fruitful: adjective 1 producing much fruit; fertile. 2 producing good results; productive. DERIVATIVES fruitfully adverb fruitfulness noun.
Perform another search of the Compact Oxford English Dictionary About this dictionary The Compact Oxford English Dictionary of Current English contains 145,000 words,
phrases, and definitions. Find out more about Oxford's range of English dictionaries Sign up for the AskOxford Word of...
after:
[13:58:36] <VanGogh> fruitful: adjective 1 producing much fruit; fertile. 2 producing good results; productive. DERIVATIVES fruitfully adverb fruitfulness noun.
Spencer RInehart [Mon, 23 Jun 2008 20:05:18 +0000 (16:05 -0400)]
Urban can now grab the first page of definitions.
Diego 'Flameeyes' Pettenò [Mon, 23 Jun 2008 16:39:49 +0000 (18:39 +0200)]
Ignore generated files.
Diego 'Flameeyes' Pettenò [Mon, 23 Jun 2008 16:39:12 +0000 (18:39 +0200)]
Properly find out the available fortune categories.
Instead of hardcoding the fortune categories path, ask fortune itself
to report which categories you can get the quotes from.
This fixes the fortune plugin on Gentoo for instance where the
databases are installed in /usr/share/fortune rather than
/usr/games/share/fortune.
Giuseppe Bilotta [Mon, 23 Jun 2008 16:00:42 +0000 (18:00 +0200)]
rfc2812.rb: skip unknown channel modes altogether
Some servers set non-advertized channel modes. Since we
cannot handle them (as we don't know what type they are)
and setting them crashes the bot, we remove them.
Yaohan Chen [Mon, 23 Jun 2008 01:08:16 +0000 (21:08 -0400)]
rename plugin_files to source_files in rgettext_proc
because the proc is used for non plugin files too
Yaohan Chen [Mon, 23 Jun 2008 01:07:32 +0000 (21:07 -0400)]
make gettext tasks output files being regenerated and sources
Giuseppe Bilotta [Sun, 22 Jun 2008 23:35:43 +0000 (01:35 +0200)]
+ strip all colours and formatting when sending to a +c or +C channel
Giuseppe Bilotta [Sun, 22 Jun 2008 23:17:52 +0000 (01:17 +0200)]
#any? and #all? methods for Channel#mode to check if modes are set
Giuseppe Bilotta [Sun, 22 Jun 2008 23:04:10 +0000 (01:04 +0200)]
extends: define Array#shuffle(\!) only if not present already, and use simpler definitions
Giuseppe Bilotta [Sun, 22 Jun 2008 22:46:58 +0000 (00:46 +0200)]
rfc2812.rb: warn about unhandled numeric replies too
Giuseppe Bilotta [Sun, 22 Jun 2008 22:42:52 +0000 (00:42 +0200)]
ircbot.rb: ask about current channel modes on join
Giuseppe Bilotta [Sun, 22 Jun 2008 22:40:38 +0000 (00:40 +0200)]
rfc2812.rb: refactor MODE parsing to use it for RPL_CHANNELMODEIS (324) too
Giuseppe Bilotta [Sun, 22 Jun 2008 10:14:25 +0000 (12:14 +0200)]
PO updates
Yaohan Chen [Sat, 21 Jun 2008 18:16:09 +0000 (14:16 -0400)]
makemo task autocreates data/locale/*/LC_MESSAGES directories
Giuseppe Bilotta [Sat, 21 Jun 2008 15:42:25 +0000 (17:42 +0200)]
lastfm plugin: default to current nick for lookups
Casey Link [Sat, 21 Jun 2008 14:18:52 +0000 (10:18 -0400)]
lastfm plugin: no need to specify a username for functions that act on a user. fixed help too.
Casey Link [Sat, 21 Jun 2008 14:08:48 +0000 (10:08 -0400)]
lastfm plugin: users can now associate their lastfm username with their irc nickname, and 'lastfm' by itself will
retunr the now playing tracks
Casey Link [Sat, 21 Jun 2008 12:55:56 +0000 (08:55 -0400)]
lastfm plugin: added now playing info to the help
Casey Link [Sat, 21 Jun 2008 12:50:32 +0000 (08:50 -0400)]
lastfm plugin: Added now playing command
Giuseppe Bilotta [Sat, 21 Jun 2008 08:31:05 +0000 (10:31 +0200)]
* initialize $version_timestamp to suppress a warning
Giuseppe Bilotta [Sat, 21 Jun 2008 07:45:34 +0000 (09:45 +0200)]
figlet plugin: font is now a config value
Giuseppe Bilotta [Sat, 21 Jun 2008 07:19:45 +0000 (09:19 +0200)]
figlet plugin: utf-8
Giuseppe Bilotta [Sat, 21 Jun 2008 07:16:53 +0000 (09:16 +0200)]
figlet plugin: ignore max_lines
Giuseppe Bilotta [Sat, 21 Jun 2008 07:10:42 +0000 (09:10 +0200)]
figlet plugin: be informative when figlet wasn't found
Yaohan Chen [Fri, 20 Jun 2008 20:36:00 +0000 (16:36 -0400)]
move bin/msgmerge-wrapper.rb to top level, as it is not intended for installation
path/command for the msgmerge-wrapper can be adjusted with env var, if
"ruby msgmerge-wrapper.rb" doesn't work on the platform
Giuseppe Bilotta [Fri, 20 Jun 2008 20:03:19 +0000 (22:03 +0200)]
setup.rb: some sanitizing
Giuseppe Bilotta [Fri, 20 Jun 2008 20:02:42 +0000 (22:02 +0200)]
Update to setup.rb 3.4.1
Yaohan Chen [Fri, 20 Jun 2008 18:41:18 +0000 (14:41 -0400)]
rewrite updatepo and makemo tasks to take advantage of file timestamps
Giuseppe Bilotta [Fri, 20 Jun 2008 17:09:30 +0000 (19:09 +0200)]
Italian translation fixes
Ian Alexander Monroe [Fri, 20 Jun 2008 15:52:28 +0000 (11:52 -0400)]
made the time plugin have more pretty output, show real timezone abbr. instead of "UTC" all the time
Feroce Maria Bumerlo [Fri, 20 Jun 2008 00:00:13 +0000 (02:00 +0200)]
updated italian translation
Casey Link [Fri, 20 Jun 2008 13:56:45 +0000 (09:56 -0400)]
grouphug plugin: tweak regex so it captures confessions with newlines properly
dmitry kim [Fri, 20 Jun 2008 12:24:38 +0000 (16:24 +0400)]
* directory independent launch_here.rb: 3rd attempt
Giuseppe Bilotta [Fri, 20 Jun 2008 10:15:31 +0000 (12:15 +0200)]
dbhash: doh
Giuseppe Bilotta [Fri, 20 Jun 2008 10:12:23 +0000 (12:12 +0200)]
dbhash.rb: slightly rework errors for failing to load bdb
Giuseppe Bilotta [Fri, 20 Jun 2008 09:56:45 +0000 (11:56 +0200)]
ircbot.rb: ensure that the logger is flushed
If the bot fails to load (e.g. because of missing dependency) the user
might miss the last error messages because the logger thread wouldn't
reach completion. Ensure its closure in an END block.
Giuseppe Bilotta [Fri, 20 Jun 2008 09:30:57 +0000 (11:30 +0200)]
bin/rbot: don't look for a svn revision if .svn doesn't exist
Giuseppe Bilotta [Thu, 19 Jun 2008 23:58:06 +0000 (01:58 +0200)]
PO update
Giuseppe Bilotta [Thu, 19 Jun 2008 23:55:31 +0000 (01:55 +0200)]
quotes plugin: fix help
Giuseppe Bilotta [Thu, 19 Jun 2008 23:55:18 +0000 (01:55 +0200)]
quotes plugin: more localization
Giuseppe Bilotta [Thu, 19 Jun 2008 23:44:05 +0000 (01:44 +0200)]
updated italian translation for quotes
Giuseppe Bilotta [Thu, 19 Jun 2008 23:37:03 +0000 (01:37 +0200)]
wheelfortune: typo in help
Giuseppe Bilotta [Thu, 19 Jun 2008 23:34:44 +0000 (01:34 +0200)]
updated italian translation for WOF
Giuseppe Bilotta [Thu, 19 Jun 2008 23:34:35 +0000 (01:34 +0200)]
updated italian translation for factoids
Giuseppe Bilotta [Thu, 19 Jun 2008 23:34:26 +0000 (01:34 +0200)]
updated italian translation for rss
Giuseppe Bilotta [Thu, 19 Jun 2008 18:04:25 +0000 (20:04 +0200)]
updated italian translation for UNO
Giuseppe Bilotta [Thu, 19 Jun 2008 16:38:07 +0000 (18:38 +0200)]
rbotconfig: be aware that -git versions also have revision information
Giuseppe Bilotta [Thu, 19 Jun 2008 16:12:41 +0000 (18:12 +0200)]
hl2 plugin: improve help
Andrew Northall [Thu, 19 Jun 2008 10:11:55 +0000 (11:11 +0100)]
updated hl2 plugin
Giuseppe Bilotta [Wed, 18 Jun 2008 16:18:05 +0000 (18:18 +0200)]
rfc2812: be compatible with ruby < 1.8.7
String#each_char is only available in ruby 1.8.7, so use each_byte
followed by .chr
Giuseppe Bilotta [Wed, 18 Jun 2008 15:48:57 +0000 (17:48 +0200)]
rfc2812: fix MODE line parsing
Giuseppe Bilotta [Wed, 18 Jun 2008 14:59:05 +0000 (16:59 +0200)]
Italian translation for youtube plugin
Giuseppe Bilotta [Wed, 18 Jun 2008 14:46:53 +0000 (16:46 +0200)]
Updated po files
dmitry kim [Wed, 18 Jun 2008 09:24:48 +0000 (13:24 +0400)]
+ core/irclog: dedicated loggers thread
dmitry kim [Wed, 18 Jun 2008 10:39:15 +0000 (14:39 +0400)]
* ircbot: fix quiet/reset_quiet wrt missing args
Casey Link [Wed, 18 Jun 2008 09:37:45 +0000 (05:37 -0400)]
* plugins/grouphug: cache the results from a page request, don't re-request until the cache has been used up.
dmitry kim [Tue, 17 Jun 2008 13:23:43 +0000 (17:23 +0400)]
+ print the location of the debug log to stdout on start
dmitry kim [Tue, 17 Jun 2008 13:33:47 +0000 (17:33 +0400)]
* load-gettext: warn() -> warning()
dmitry kim [Tue, 17 Jun 2008 13:33:13 +0000 (17:33 +0400)]
* plugins: misc warnings cleanups
dmitry kim [Tue, 17 Jun 2008 13:32:41 +0000 (17:32 +0400)]
* plugins.rb: avoid uninitialized warning on @priority
Giuseppe Bilotta [Mon, 16 Jun 2008 19:07:33 +0000 (21:07 +0200)]
irclog: log own CTCP message with correct syntax