use utils.SensitiveSetting in nickserv.py

This commit is contained in:
jesopo 2019-09-12 12:17:52 +01:00
parent d950eb3660
commit 9cda86065b

View file

@ -3,7 +3,7 @@
import base64 import base64
from src import EventManager, ModuleManager, utils from src import EventManager, ModuleManager, utils
@utils.export("serverset", utils.Setting("nickserv-password", @utils.export("serverset", utils.SensitiveSetting("nickserv-password",
"Set the nickserv password for this server", example="hunter2")) "Set the nickserv password for this server", example="hunter2"))
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):
@utils.hook("received.001", priority=EventManager.PRIORITY_URGENT) @utils.hook("received.001", priority=EventManager.PRIORITY_URGENT)