- elif used_prefix and cmd == "ban":
- name = room.findUser(args)
- if args.split() in room.usernames:
- duration = int(args.split()) * 60 * 60
- if args.split() == '1': msg = 'hour'
- else: msg = 'hours'
- room.message("I've banned %s for %s %s :@" % (name.title(),duration/3600,msg))
- self.setTimeout(duration,room._sendCommand, "removeblock",room.getLastMessage(ch.User(name.lower())).unid,room.getLastMessage(ch.User(name.lower())).ip,name.lower())
- room.message("They're not here")
GoldLeej Jul 15th, 2013 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data