aboutsummaryrefslogtreecommitdiff
path: root/http2irc.py
diff options
context:
space:
mode:
authorGravatar JustAnotherArchivist2021-12-07 06:09:02 +0000
committerGravatar JustAnotherArchivist2021-12-07 06:09:02 +0000
commit454b9acc2d17d6f5186126d2b4357a31256c9a9f (patch)
tree8896b48a1f76e62b5845f54004a8de8a5df73550 /http2irc.py
parentOnly rebind web server on host/port changes (diff)
signature
Add DeprecationWarning for auth
Diffstat (limited to 'http2irc.py')
-rw-r--r--http2irc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/http2irc.py b/http2irc.py
index 3148467..cfc38cc 100644
--- a/http2irc.py
+++ b/http2irc.py
@@ -19,6 +19,7 @@ import string
import sys
import time
import toml
+import warnings
logger = logging.getLogger('http2irc')
@@ -184,6 +185,7 @@ class Config(dict):
if 'auth' in map_:
if 'postauth' in map_:
raise InvalidConfig(f'auth and postauth are aliases and cannot be used together')
+ warnings.warn('auth is deprecated, use postauth instead', DeprecationWarning)
map_['postauth'] = map_['auth']
del map_['auth']
for k in ('postauth', 'getauth'):