Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def do_ban2(self, user_name):
- unkickable_accounts = ['yoshi', 'microindulgence', 'ultravioletx', 'dylanreplay', 'banehollow', 'godlyneckbeard' \
- 'nonbanfaber', 'culturecollage', \
- 'txisthereason', 'sanguine', 'fruitl0op', \
- 'tirednormie2', 'weagle2', 'blushbrush', 'neetknight', \
- 'yoshi', 'b0undb0nes', 'thebookclub'] \
- if user_name.startswith('*'):
- user_name = user_name.lstrip('*')
- _users = self._bot.users.search_containing(user_name)
- if len(_users) > 0:
- for i, user in enumerate(_users):
- if user.nick != self._bot.nick and user.level > self._user.level and i <= self._conf.MAX_MATCH_BANS - 1:
- if user.account in unkickable_accounts:
- self._responder('Only MeKLiN can ban Ultramod: %s' % user.account)
- else:
- self._bot.send_ban_msg(user.handle)
- else:
- _user = self._bot.users.search_by_nick(user_name)
- if _user is None:
- self._responder('Nickname kicks are CaSe SeNsiTiVe. No user named: %s' % user_name)
- elif _user.level < self._user.level:
- self._responder('Cant ban self.')
- elif _user.account in unkickable_accounts:
- self._responder('Only MeKLiN can ban Ultramod: %s' % _user.account)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement