botnet/worker.py
def require_boss(self, callback):
        """\
        Decorator to ensure that commands only can come from the boss
        """
        def inner(nick, message, channel, *args, **kwargs):
            if nick != self.boss:
                return
            
            return callback(nick, message, channel, *args, **kwargs)
        return inner
def require_boss(self, callback):
        def inner(nick, message, channel, *args, **kwargs):
            if nick != self.boss:
                return
            
            return callback(nick, message, channel, *args, **kwargs)
        return inner
def require_boss ( self , callback ) : def inner ( nick , message , channel , * args , * * kwargs ) : if nick != self . boss : return return callback ( nick , message , channel , * args , * * kwargs ) return inner
\
        Decorator to ensure that commands only can come from the boss
\ Decorator to ensure that commands only can come from the boss