diff options
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/botuser.rb | 13 |
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
#
|