summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-13 00:14:53 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-13 00:14:53 +0000
commit922c6a35bb34598da397d2a0078adc397e84a853 (patch)
tree1cf50d155810dfc2bb48818e624137e0cd44884e /data/rbot
parent211ec431c1fe0cd5eba3a45b90c9267da3c125ae (diff)
more rdoc-ification
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/rss.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb
index 5a87e789..5e7eff21 100644
--- a/data/rbot/plugins/rss.rb
+++ b/data/rbot/plugins/rss.rb
@@ -283,15 +283,15 @@ class RSSFeedsPlugin < Plugin
# the restore to work.
#
# This is actually pretty safe for a number of reasons:
- # * the code is only called if standard marshalling fails
- # * the string we look for is quite unlikely to appear randomly
- # * if the string appears somewhere and the patched string isn't recoverable
- # either, we'll get another (unrecoverable) error, which makes the rss
- # plugin unsable, just like it was if no recovery was attempted
- # * if the string appears somewhere and the patched string is recoverable,
- # we may get a b0rked feed, which is eventually overwritten by a clean
- # one, so the worst thing that can happen is that a feed update spams
- # the watchers once
+ # * the code is only called if standard marshalling fails
+ # * the string we look for is quite unlikely to appear randomly
+ # * if the string appears somewhere and the patched string isn't recoverable
+ # either, we'll get another (unrecoverable) error, which makes the rss
+ # plugin unsable, just like it was if no recovery was attempted
+ # * if the string appears somewhere and the patched string is recoverable,
+ # we may get a b0rked feed, which is eventually overwritten by a clean
+ # one, so the worst thing that can happen is that a feed update spams
+ # the watchers once
@registry.recovery = Proc.new { |val|
patched = val.sub(":\v@mutexo:\nMutex", ":\v@mutexo:\vObject")
ret = Marshal.restore(patched)