]>
Commit | Line | Data |
---|---|---|
685e346e A |
1 | from pseudoclient.sys_auth import AuthManager |
2 | ||
3 | class EsimAuthManager(AuthManager): | |
4 | def __init__(self, module): | |
5 | AuthManager.__init__(self, module) | |
6 | ||
7 | def onAccept(self, user, request, action, channel): | |
8 | if action == 'highlight': | |
9 | if self.module.channels.is_valid(channel): | |
10 | self.module.channels.set(channel, 'mass', True) | |
11 | self.module.msg(user, 'Enabled mass highlighting in @b%s@b.' % channel) | |
12 | elif action == 'nohighlight': | |
13 | if self.module.channels.is_valid(channel): | |
14 | self.module.channels.set(channel, 'mass', False) | |
15 | self.module.msg(user, 'Disabled mass highlighting in @b%s@b.' % channel) | |
16 | else: | |
17 | return False | |
18 | ||
19 | return True |