def getBlacklistPlugin(self):
     """
     Override this and return you own plugin for blacklist commands.
     Then implement a function is_blacklisted(<command_name>)
     Any return other then 0 will block command execution
     """
     return CommandBlacklist()
Beispiel #2
0
 def getBlacklistPlugin(self):
     commandBlacklist = CommandBlacklist()
     commandBlacklist.add_blocked_command("blocked")
     return commandBlacklist
Beispiel #3
0
 def getBlacklistPlugin(self):
     blacklister = CommandBlacklist()
     blacklister.add_blocked_command("topcpu")
     blacklister.add_blocked_command("topmem")
     return blacklister
Beispiel #4
0
 def getBlacklistPlugin(self):
     blacklister = CommandBlacklist()
     blacklister.add_blocked_command("be-blocked")
     return blacklister
 def getBlacklistPlugin(self):
     blacklister = CommandBlacklist()
     for blk_command in self.blacklisted_commands:
         blacklister.add_blocked_command(blk_command)
     return blacklister