silence.py's is-silenced
export is no longer used
This commit is contained in:
parent
3453479235
commit
3ccb594e10
1 changed files with 0 additions and 3 deletions
|
@ -7,9 +7,6 @@ from src import EventManager, ModuleManager, utils
|
||||||
SILENCE_TIME = 60*5 # 5 minutes
|
SILENCE_TIME = 60*5 # 5 minutes
|
||||||
|
|
||||||
class Module(ModuleManager.BaseModule):
|
class Module(ModuleManager.BaseModule):
|
||||||
def on_load(self):
|
|
||||||
self.exports.add("is-silenced", self._is_silenced)
|
|
||||||
|
|
||||||
def _is_silenced(self, target):
|
def _is_silenced(self, target):
|
||||||
silence_until = target.get_setting("silence-until", None)
|
silence_until = target.get_setting("silence-until", None)
|
||||||
if not silence_until == None:
|
if not silence_until == None:
|
||||||
|
|
Loading…
Reference in a new issue