Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if message.startswith("!"):
- if command = "login":
- hashed = md5.new(message[1]).hexdigest()
- if hashed == password:
- admins.append[username]
- if command = "modload" and username in admins:
- if message[1] not in loadedmods:
- import_string=("from modules.%s import *" % message[1])
- loadedmods.append(message[1].modname())
- exec import_string
- if message[1] == "!help":
- checkuser(rbuffer[4],connection,config)
- else:
- try:
- check =[key for key in locals().keys() if isinstance(locals()[key], type(sys)) and not key.startswith('__')]:
- for item in check.remove(command):
- item.command()
Add Comment
Please, Sign In to add comment