Giuseppe Bilotta [Sat, 19 Apr 2008 08:15:02 +0000 (10:15 +0200)]
core/irclog: black and whitelists
Giuseppe Bilotta [Sat, 19 Apr 2008 07:18:31 +0000 (09:18 +0200)]
core/irclog: config option for max open files
dmitry kim [Thu, 17 Apr 2008 21:38:31 +0000 (01:38 +0400)]
* make the daemonization thing to suck less (wrt standard io channels)
Giuseppe Bilotta [Wed, 16 Apr 2008 22:44:17 +0000 (00:44 +0200)]
update .po files
Giuseppe Bilotta [Wed, 16 Apr 2008 21:49:41 +0000 (23:49 +0200)]
gettext: support anonymous modules (and thus plugins) with newer gettext
While older ruby-gettext raised when trying to bind for anonymous
modules (such as the ones that wrap rbot plugins), newer versions just
provide an empty array. This makes the previous fix (which used rescue)
ineffective.
Solve by rescuing with [] (so that older gettext behaves like the new
one) and then adding Object if the list is indeed empty.
dmitry kim [Tue, 15 Apr 2008 21:59:03 +0000 (01:59 +0400)]
+ ircbot logging: log_session_end on restarts, too
dmitry kim [Tue, 15 Apr 2008 21:06:28 +0000 (01:06 +0400)]
* ircbot logging: fixed the logger thread wrt daemonizing
dmitry kim [Tue, 15 Apr 2008 19:07:02 +0000 (23:07 +0400)]
+ ircbot logging: atomic multiline log records
dmitry kim [Tue, 15 Apr 2008 18:54:55 +0000 (22:54 +0400)]
* ircbot logging: $log_queue / logger thread
Giuseppe Bilotta [Tue, 15 Apr 2008 13:01:37 +0000 (15:01 +0200)]
debug logging: don't raise on SecurityError
Some scripts (from the scripts plugin) can trigger the logging functions
(debug, warning, info etc) in a $SAFE context: this causes the logger to
fail. Catch SecurityError in raw_log() to prevent these valid scripts from
failing.
Giuseppe Bilotta [Tue, 15 Apr 2008 13:01:26 +0000 (15:01 +0200)]
script plugin: report_error() method
dmitry kim [Tue, 15 Apr 2008 01:25:45 +0000 (05:25 +0400)]
+ core/irclog: stamp/close logs on rescan/restart
dmitry kim [Tue, 15 Apr 2008 01:14:25 +0000 (05:14 +0400)]
+ core/irclog: expiration for the open logfiles cache
dmitry kim [Tue, 15 Apr 2008 00:29:37 +0000 (04:29 +0400)]
+ core/irclog: time stamp on open
Giuseppe Bilotta [Tue, 15 Apr 2008 00:03:04 +0000 (02:03 +0200)]
irclog: uniformize logging style
Giuseppe Bilotta [Mon, 14 Apr 2008 23:54:07 +0000 (01:54 +0200)]
irclog core module: dispatch from listen() to catch double-delegated messages early
Giuseppe Bilotta [Mon, 14 Apr 2008 23:48:33 +0000 (01:48 +0200)]
ircbot.rb: fix some IRC log refactoring issues
Giuseppe Bilotta [Mon, 14 Apr 2008 23:21:34 +0000 (01:21 +0200)]
IRC logging refactoring
Giuseppe Bilotta [Mon, 14 Apr 2008 21:34:57 +0000 (23:34 +0200)]
uno plugin: more help
Giuseppe Bilotta [Mon, 14 Apr 2008 20:55:05 +0000 (22:55 +0200)]
uno plugin: initialize top10 counter both for inline and spread lists
Giuseppe Bilotta [Mon, 14 Apr 2008 20:32:38 +0000 (22:32 +0200)]
utils: URI fragment is sometimes found in id attribute to A tag
Giuseppe Bilotta [Mon, 14 Apr 2008 20:22:55 +0000 (22:22 +0200)]
utils: don't hang when getting first par with nonexistant uri-fragment
When an URL is passed which has a uri-fragment referring to a
nonexisting named ref, the bot should not hang with 100% CPU usage
while trying to match a horribly designed regular expression.
Fix by using a much simpler regexp and post-match.
Giuseppe Bilotta [Mon, 14 Apr 2008 19:09:06 +0000 (21:09 +0200)]
uno plugin: command to transfer game ownership
Giuseppe Bilotta [Mon, 14 Apr 2008 17:58:31 +0000 (19:58 +0200)]
uno plugin: game starter how has temporary full uno::manage permissions for the game
Giuseppe Bilotta [Mon, 14 Apr 2008 17:49:04 +0000 (19:49 +0200)]
auth core botmodule: it's p, not params
Giuseppe Bilotta [Mon, 14 Apr 2008 15:33:19 +0000 (17:33 +0200)]
+ temporary permissions
Giuseppe Bilotta [Mon, 14 Apr 2008 15:16:17 +0000 (17:16 +0200)]
uno plugin: cleanly end all games on cleanup()
Giuseppe Bilotta [Mon, 14 Apr 2008 15:04:35 +0000 (17:04 +0200)]
uno plugin: clean up game management permissions
Giuseppe Bilotta [Sun, 13 Apr 2008 23:03:21 +0000 (01:03 +0200)]
youtube plugin: update filters to new YouTube layout
Giuseppe Bilotta [Sun, 13 Apr 2008 22:08:02 +0000 (00:08 +0200)]
uno plugin: remove completed TODOs
Giuseppe Bilotta [Sun, 13 Apr 2008 01:41:55 +0000 (03:41 +0200)]
plugins: rework delegate() to accept options
Giuseppe Bilotta [Sat, 12 Apr 2008 23:46:46 +0000 (01:46 +0200)]
+ UnknownMessage class
Giuseppe Bilotta [Sat, 12 Apr 2008 23:44:26 +0000 (01:44 +0200)]
+ NamesMessage class
Giuseppe Bilotta [Sat, 12 Apr 2008 23:30:34 +0000 (01:30 +0200)]
rfc2812: parse User mode changes, even though they aren't handled yet
Giuseppe Bilotta [Sat, 12 Apr 2008 23:16:16 +0000 (01:16 +0200)]
rfc2812: clean up channel mode handling
Giuseppe Bilotta [Sat, 12 Apr 2008 22:53:56 +0000 (00:53 +0200)]
+ ModeChangeMessage class
Giuseppe Bilotta [Sat, 12 Apr 2008 22:03:47 +0000 (00:03 +0200)]
+ MotdMessage class
Giuseppe Bilotta [Sat, 12 Apr 2008 21:48:54 +0000 (23:48 +0200)]
+ delegate notice() for NoticeMessage
Giuseppe Bilotta [Sat, 12 Apr 2008 21:43:37 +0000 (23:43 +0200)]
+ WelcomeMessage class
Giuseppe Bilotta [Sat, 12 Apr 2008 20:07:10 +0000 (22:07 +0200)]
plugins: make delegate() aware of ignored and fake messages
By convention, ignored messages will only be delegated to plugins with
negative priority, while fake messages will only be delegated to plugins
with positive priority.
doki_pen [Sat, 12 Apr 2008 15:36:56 +0000 (11:36 -0400)]
test for event threshold
doki_pen [Sat, 12 Apr 2008 15:38:50 +0000 (11:38 -0400)]
event delegation thresholds
Giuseppe Bilotta [Sat, 12 Apr 2008 07:53:59 +0000 (09:53 +0200)]
uno plugin: top scores and wins
Giuseppe Bilotta [Sat, 12 Apr 2008 07:26:07 +0000 (09:26 +0200)]
uno plugin: channel and player stats
Giuseppe Bilotta [Fri, 11 Apr 2008 19:00:06 +0000 (21:00 +0200)]
uno plugin: a Reverse on a Reverse on a +X should be playable regardless of color
Giuseppe Bilotta [Fri, 11 Apr 2008 18:53:49 +0000 (20:53 +0200)]
uno plugin: Reverse with two players and a picker should bounce the pick
Giuseppe Bilotta [Fri, 11 Apr 2008 17:20:35 +0000 (19:20 +0200)]
uno plugin: mark all legit moves as not challengeable
Giuseppe Bilotta [Fri, 11 Apr 2008 17:07:29 +0000 (19:07 +0200)]
uno plugin: don't fail to drop players that left the channel
Giuseppe Bilotta [Fri, 11 Apr 2008 15:18:41 +0000 (17:18 +0200)]
uno plugin: W+4 can be challenged
Giuseppe Bilotta [Fri, 11 Apr 2008 13:31:40 +0000 (15:31 +0200)]
uno plugin: allow playing a double +2 card
Giuseppe Bilotta [Fri, 11 Apr 2008 10:26:45 +0000 (12:26 +0200)]
uno plugin: correct handling of drops and forced game ends
dmitry kim [Thu, 10 Apr 2008 22:30:59 +0000 (02:30 +0400)]
* recalculate the relative version timestamp on !version
Giuseppe Bilotta [Thu, 10 Apr 2008 18:32:29 +0000 (20:32 +0200)]
uno plugin: pick or pass are the same when +X are pending
dmitry kim [Thu, 10 Apr 2008 18:26:24 +0000 (22:26 +0400)]
+ show relative timestamp in git version
Giuseppe Bilotta [Thu, 10 Apr 2008 17:17:21 +0000 (19:17 +0200)]
filters: suppress a warning
Giuseppe Bilotta [Thu, 10 Apr 2008 16:59:54 +0000 (18:59 +0200)]
rbot: don't fail in git checkout if git can't be run
doki_pen [Thu, 10 Apr 2008 14:17:22 +0000 (10:17 -0400)]
adds test for add_botmodules bug fix.
doki_pen [Thu, 10 Apr 2008 14:13:46 +0000 (10:13 -0400)]
Bug fix, priority order needs to be marked dirty when modules added.
Giuseppe Bilotta [Thu, 10 Apr 2008 12:58:03 +0000 (14:58 +0200)]
uno plugin: document playability of two equal cards
Giuseppe Bilotta [Thu, 10 Apr 2008 12:48:22 +0000 (14:48 +0200)]
uno plugin: player replacement
Giuseppe Bilotta [Thu, 10 Apr 2008 12:16:32 +0000 (14:16 +0200)]
uno plugin: allow players to drop from the game
Giuseppe Bilotta [Thu, 10 Apr 2008 11:36:35 +0000 (13:36 +0200)]
uno plugin: uno end command
Giuseppe Bilotta [Thu, 10 Apr 2008 11:23:49 +0000 (13:23 +0200)]
uno plugin: when players join mid-game, give them an average number of gards
Giuseppe Bilotta [Thu, 10 Apr 2008 10:34:47 +0000 (12:34 +0200)]
uno plugin: more extensive help
Giuseppe Bilotta [Thu, 10 Apr 2008 10:12:34 +0000 (12:12 +0200)]
uno plugin: rework play_card param matching, allowing color spec for wild
Giuseppe Bilotta [Thu, 10 Apr 2008 06:45:29 +0000 (08:45 +0200)]
quotes plugin: modernize dispatcher, add localization
Giuseppe Bilotta [Thu, 10 Apr 2008 06:05:01 +0000 (08:05 +0200)]
plugins: reinstate debug lines in privmsg()
Giuseppe Bilotta [Wed, 9 Apr 2008 22:52:01 +0000 (00:52 +0200)]
uno plugin: TODOs
Giuseppe Bilotta [Wed, 9 Apr 2008 22:41:40 +0000 (00:41 +0200)]
uno plugin: always bolden player names
Giuseppe Bilotta [Wed, 9 Apr 2008 22:09:50 +0000 (00:09 +0200)]
uno plugin: public announce of people on join
Giuseppe Bilotta [Wed, 9 Apr 2008 22:07:27 +0000 (00:07 +0200)]
plugins: mark priorities dirty on rescan
Giuseppe Bilotta [Wed, 9 Apr 2008 21:45:21 +0000 (23:45 +0200)]
uno plugin: fix check for card presence
Giuseppe Bilotta [Wed, 9 Apr 2008 21:31:59 +0000 (23:31 +0200)]
math plugin: stringify answer for reply
Some Ruby versions seem to have a problem when answer is a Fixnum, so
make the .to_s conversion explicit
Giuseppe Bilotta [Wed, 9 Apr 2008 21:31:26 +0000 (23:31 +0200)]
math plugin: report errors with full backtrace
Giuseppe Bilotta [Wed, 9 Apr 2008 21:13:50 +0000 (23:13 +0200)]
hl2 plugin: handle send errors as well
Giuseppe Bilotta [Wed, 9 Apr 2008 21:09:11 +0000 (23:09 +0200)]
uno plugin: don't trigger in-game commands if they have parameters they shouldn't have
doki_pen [Wed, 9 Apr 2008 12:37:23 +0000 (08:37 -0400)]
Added unit test for botmodule event priorities.
doki_pen [Wed, 9 Apr 2008 12:34:15 +0000 (08:34 -0400)]
Added event priorities to modules.
Giuseppe Bilotta [Wed, 9 Apr 2008 20:24:40 +0000 (22:24 +0200)]
uno plugin: sort dealt cards too
Giuseppe Bilotta [Wed, 9 Apr 2008 20:22:27 +0000 (22:22 +0200)]
uno plugin: colorize color pick
Giuseppe Bilotta [Wed, 9 Apr 2008 20:02:00 +0000 (22:02 +0200)]
uno plugin: fix playing cards after a Reverse after a +something
Giuseppe Bilotta [Wed, 9 Apr 2008 19:48:52 +0000 (21:48 +0200)]
uno plugin: fix endgame with positive picker
Giuseppe Bilotta [Wed, 9 Apr 2008 19:47:21 +0000 (21:47 +0200)]
uno plugin: fix playability check for Reverse vs +x
Giuseppe Bilotta [Wed, 9 Apr 2008 19:25:40 +0000 (21:25 +0200)]
uno plugin: sort players' cards
Giuseppe Bilotta [Wed, 9 Apr 2008 15:06:40 +0000 (17:06 +0200)]
uno plugin: downcase parameters
Giuseppe Bilotta [Wed, 9 Apr 2008 14:57:39 +0000 (16:57 +0200)]
uno plugin: don't reset the @picker until cards are assigned
Giuseppe Bilotta [Wed, 9 Apr 2008 14:57:01 +0000 (16:57 +0200)]
uno game: non-wilds can't be played on a +something unless they're the right color
Giuseppe Bilotta [Wed, 9 Apr 2008 14:46:14 +0000 (16:46 +0200)]
uno plugin: endgame
Giuseppe Bilotta [Wed, 9 Apr 2008 12:30:26 +0000 (14:30 +0200)]
uno plugin: initial implementation of UNO! game, no endgame yet
Giuseppe Bilotta [Tue, 8 Apr 2008 22:28:49 +0000 (00:28 +0200)]
message: force Irc color to be specificed with 2 digits
Giuseppe Bilotta [Tue, 8 Apr 2008 22:28:18 +0000 (00:28 +0200)]
extends: Array#shuffle! and shuffle methods
Giuseppe Bilotta [Tue, 8 Apr 2008 21:54:49 +0000 (23:54 +0200)]
extends: Array#delete_one takes an optional argument for the element to delete: if nil or absent, a random element is returned and deleted
Giuseppe Bilotta [Tue, 8 Apr 2008 23:28:21 +0000 (01:28 +0200)]
script plugin: mark handled messages as replied
Giuseppe Bilotta [Tue, 8 Apr 2008 14:28:53 +0000 (16:28 +0200)]
revert previous useless commit and rdocify documentation of accessors to BotModule
Giuseppe Bilotta [Tue, 8 Apr 2008 14:19:49 +0000 (16:19 +0200)]
extends: registry reader attribute for BotModule
Giuseppe Bilotta [Tue, 8 Apr 2008 14:09:14 +0000 (16:09 +0200)]
remotectl plugin: use fake_message()
Giuseppe Bilotta [Tue, 8 Apr 2008 14:09:14 +0000 (16:09 +0200)]
reaction plugin: use fake_message()
Giuseppe Bilotta [Tue, 8 Apr 2008 14:09:14 +0000 (16:09 +0200)]
linkbot plugin: use fake_message()
Giuseppe Bilotta [Tue, 8 Apr 2008 14:09:14 +0000 (16:09 +0200)]
alias plugin: use fake_message()
Giuseppe Bilotta [Tue, 8 Apr 2008 13:51:07 +0000 (15:51 +0200)]
extends: BotModule#fake_message() to simplify creation of fake messages