def func(*args,**kwds):
     user = args[2]
     server = args[1]
     l = util.get_admin_hash_list()
     if hasattr(user,'nick') and user.nick in l or str(user) in l:
         f(*args, **kwds)
     elif hasattr(user,'kill'):
         user.kill('service abuse ;3')
Exemple #2
0
 def kill(self,user,reason):
     '''
     kill a user with a reason
     '''
     user.kill(user)
     self.close_user(user)