You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
318 B
Python
12 lines
318 B
Python
5 years ago
|
class LogoutCommand:
|
||
6 years ago
|
def __init__(self, *args):
|
||
|
self.logout(*args)
|
||
7 years ago
|
|
||
2 years ago
|
def logout(self, addr, authed, data, obj, spl, success, failure, info, incUsage, length):
|
||
7 years ago
|
if authed:
|
||
|
obj.authed = False
|
||
|
success("Logged out")
|
||
|
return
|
||
|
else:
|
||
|
incUsage(None)
|