Пример #1
0
 def login_hook(self,):
     pfos = self.protocol.factory.options
     self.autoinvite = bool(self.get_gnubg().get_dice_filename())
     toggle = Toggle(self, self.requests)
     toggle.send_command('toggle')
     if self.autoinvite:
         self.nr_games = pfos.number_of_games
         self.invite_MLs = self._set_invite_MLs()
         settings = SetTest(self, self.requests)
         settings.set_dice_file()
     else:
         settings = Set(self, self.requests)
     settings.set_delay_value(pfos.delay)
     settings.send_command('set')
     self.relax_hook()
Пример #2
0
 def login_hook(self, ):
     self.autoinvite = self.protocol.factory.options.auto_invite
     self.nr_games = self.protocol.factory.options.number_of_games
     if self.protocol.factory.options.evaluate_mwc:
         self.current_gnubg = 'gnubg'
         log.msg("Set current_gnubg to 'gnubg'")
         reg = Register(self, self.requests)
         reg.send_command('register mwcEvaluation')
         MWC(self, self.requests)
     else:
         toggle = Toggle(self, self.requests)
         toggle.send_command('toggle')
         settings = Set(self, self.requests)
         settings.set_delay_value(self.protocol.factory.options.delay)
         settings.send_command('set')
         self.relax_hook()
Пример #3
0
 def login_hook(self,):
     self.autoinvite = self.protocol.factory.options.auto_invite
     self.nr_games = self.protocol.factory.options.number_of_games
     if self.protocol.factory.options.evaluate_mwc:
         self.current_gnubg = 'gnubg'
         log.msg("Set current_gnubg to 'gnubg'")
         reg = Register(self, self.requests)
         reg.send_command('register mwcEvaluation')
         MWC(self, self.requests)
     else:
         toggle = Toggle(self, self.requests)
         toggle.send_command('toggle')
         settings = Set(self, self.requests)
         settings.set_delay_value(self.protocol.factory.options.delay)
         settings.send_command('set')
         self.relax_hook()
Пример #4
0
 def _toggle_ready():
     toggle = Toggle(self, self.requests)
     toggle.send_command('toggle')
Пример #5
0
 def _toggle_ready():
     toggle = Toggle(self, self.requests)
     toggle.send_command('toggle')