Moved files to subdirectory

This commit is contained in:
2022-09-06 12:50:09 +01:00
parent 2c3d83fe9a
commit bd9f9378cf
83 changed files with 0 additions and 0 deletions

23
legacy/commands/pass.py Normal file
View File

@@ -0,0 +1,23 @@
import main
class PassCommand:
def __init__(self, *args):
self.password(*args)
def password(self, addr, authed, data, obj, spl, success, failure, info, incUsage, length):
if authed:
info("You are already authenticated")
return
else:
if length == 2:
if spl[1] == main.config["Password"]:
success("Authenticated successfully")
obj.authed = True
return
else:
failure("Password incorrect")
obj.transport.loseConnection()
return
else:
incUsage("pass")