예제 #1
0
 def get_config_for_router(self, router):
     # If the router isn't running, we want to ignore the message instead of
     # getting the config.
     if not router.running():
         raise IgnoreMessage("Router '%s' not running." % (router.key, ))
     config_data = self.get_config_data_for_router(router)
     return self.CONFIG_CLASS(config_data)
예제 #2
0
 def get_config_for_conversation(self, conversation):
     # If the conversation isn't running, we want to ignore the message
     # instead of getting the config.
     if not conversation.running():
         raise IgnoreMessage("Conversation '%s' not running." %
                             (conversation.key, ))
     config_data = self.get_config_data_for_conversation(conversation)
     return self.CONFIG_CLASS(config_data)
예제 #3
0
 def im_handler(msg):
     raise IgnoreMessage()