3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 12:12:53 +01:00

Irc: deprecate checkAuthenticated()

This commit is contained in:
James Lu 2017-02-24 18:42:58 -08:00
parent 50ff330734
commit 3d9f69dba7

View File

@ -1077,6 +1077,9 @@ class Irc():
Checks whether the given user has operator status on PyLink, raising Checks whether the given user has operator status on PyLink, raising
NotAuthorizedError and logging the access denial if not. NotAuthorizedError and logging the access denial if not.
""" """
log.warning("(%s) Irc.checkAuthenticated() is deprecated as of PyLink 1.2 and may be "
"removed in a future relase. Consider migrating to the PyLink Permissions API.",
self.name)
lastfunc = inspect.stack()[1][3] lastfunc = inspect.stack()[1][3]
if not self.isOper(uid, allowAuthed=allowAuthed, allowOper=allowOper): if not self.isOper(uid, allowAuthed=allowAuthed, allowOper=allowOper):
log.warning('(%s) Access denied for %s calling %r', self.name, log.warning('(%s) Access denied for %s calling %r', self.name,