summaryrefslogtreecommitdiff
path: root/lib/rbot/botuser.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-11 14:52:05 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-02-11 14:52:05 +0000
commit471fffa8a1c23d7fc5f64fe3c1bd0306d27632c3 (patch)
treea10fc776692a671460d737c39c58878214c51c9c /lib/rbot/botuser.rb
parent386274dd8f83d4aac27e837f1dca11f0f9250ee8 (diff)
Minor messagemapper optimizations
Diffstat (limited to 'lib/rbot/botuser.rb')
-rw-r--r--lib/rbot/botuser.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/rbot/botuser.rb b/lib/rbot/botuser.rb
index 41fca6cf..52b83151 100644
--- a/lib/rbot/botuser.rb
+++ b/lib/rbot/botuser.rb
@@ -101,6 +101,16 @@ class String
end
+class Symbol
+
+ # Returns an Irc::Auth::Comand from the receiver
+ def to_irc_auth_command
+ Irc::Auth::Command.new(self)
+ end
+
+end
+
+
module Irc