monolith/legacy/commands/logout.py

14 lines
332 B
Python
Raw Normal View History

class LogoutCommand:
def __init__(self, *args):
self.logout(*args)
2022-09-05 06:20:30 +00:00
def logout(
self, addr, authed, data, obj, spl, success, failure, info, incUsage, length
):
if authed:
obj.authed = False
success("Logged out")
return
else:
incUsage(None)