From eb997017eb87a93233c539ded826a6669b5df868 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 23 Sep 2007 10:57:10 +0000 Subject: [PATCH] New Auth Framework: BotUser#default? and owner? methods --- lib/rbot/botuser.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 # -- 2.39.2