https://reisub.nsupdate.info/git
/
relay.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0742ff2
)
authreqs: add get_irc_bot(), utter hackjob but works for now
author
William Pitcock
<nenolod@dereferenced.org>
Fri, 17 Aug 2018 22:42:32 +0000
(17:42 -0500)
committer
William Pitcock
<nenolod@dereferenced.org>
Fri, 17 Aug 2018 22:42:32 +0000
(17:42 -0500)
viera/authreqs.py
patch
|
blob
|
history
diff --git
a/viera/authreqs.py
b/viera/authreqs.py
index
d70aa7e
..
56c7fc7
100644
(file)
--- 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"]