Exemplo n.º 1
0
 def onLoadConfig(self):
     """
     Load plugin configuration.
     """
     self.min_level = self.getSetting('settings', 'min_level', b3.LEVEL, 20)
     self.min_level_global_manage = self.getSetting('settings', 'min_level_global_manage', b3.LEVEL, 100, lambda x: clamp(x, minv=self.min_level))
     self.max_nicks = self.getSetting('settings', 'max_nicks', b3.INTEGER, 3)
     self.interval = self.getSetting('settings', 'interval', b3.INTEGER, 30)
Exemplo n.º 2
0
 def loadRadioSpamProtection(self):
     """
     Setup the radio spam protection
     """
     self._rsp_enable = self.getSetting('radio_spam_protection', 'enable', b3.BOOL, self._rsp_enable)
     self._rsp_mute_duration = self.getSetting('radio_spam_protection', 'mute_duration', b3.INT, self._rsp_mute_duration, lambda x: clamp(x, minv=1))
Exemplo n.º 3
0
 def onLoadConfig(self):
     """
     Load plugin configuration
     """
     self._maxSpamins = self.getSetting('settings', 'max_spamins', b3.INTEGER, self._maxSpamins, lambda x: clamp(x, minv=0))
     self._modLevel = self.getSetting('settings', 'mod_level', b3.LEVEL, self._modLevel)
     self._falloffRate = self.getSetting('settings', 'falloff_rate', b3.FLOAT, self._falloffRate)