From 489a01fc9eb6727b564ae9c679cef3664e3fd6dd Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 17 Aug 2018 17:42:32 -0500 Subject: [PATCH] authreqs: add get_irc_bot(), utter hackjob but works for now --- viera/authreqs.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/viera/authreqs.py b/viera/authreqs.py index d70aa7e..56c7fc7 100644 --- a/viera/authreqs.py +++ b/viera/authreqs.py @@ -43,6 +43,7 @@ def new_auth_req(irc_nickname, irc_account): return authid +# XXX - utter hackjob def set_irc_bot(bot): global IRC_BOT @@ -50,6 +51,12 @@ def set_irc_bot(bot): logging.debug("SET IRC BOT TO: %r", bot) +def get_irc_bot(): + global IRC_BOT + + return IRC_BOT + + def check_auth(account): return account in DATABASE["auths"]