summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/irc.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rbot/irc.rb b/lib/rbot/irc.rb
index 9a9998e7..7970a773 100644
--- a/lib/rbot/irc.rb
+++ b/lib/rbot/irc.rb
@@ -24,6 +24,7 @@ require 'singleton'
# The following monkeypatch is to fix a bug in Singleton where marshaling would
# fail when trying to restore a marshaled Singleton due to _load being declared
# private.
+if RUBY_VERSION < '1.9'
module ::Singleton
public :_dump
end
@@ -33,6 +34,7 @@ class << Singleton
public :_load
end
end
+end
class Object