summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-23 10:57:10 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-23 10:57:10 +0000
commiteb997017eb87a93233c539ded826a6669b5df868 (patch)
treeec38b57813ed38ec1a6a6ab2d72fdb715e004e56 /lib
parent478abdd11956f5de0d8250cd2dbe44e8a104c4d1 (diff)
New Auth Framework: BotUser#default? and owner? methods
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/botuser.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/rbot/botuser.rb b/lib/rbot/botuser.rb
index a710a863..f2c48421 100644
--- a/lib/rbot/botuser.rb
+++ b/lib/rbot/botuser.rb
@@ -601,6 +601,19 @@ class Bot
end
+ class BotUser
+ # Check if the current BotUser is the default one
+ def default?
+ return DefaultBotUserClass === self
+ end
+
+ # Check if the current BotUser is the owner
+ def owner?
+ return BotOwnerClass === self
+ end
+ end
+
+
# This is the ManagerClass singleton, used to manage
# Irc::User/Irc::Bot::Auth::BotUser connections and everything
#