mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Change User.listInPrivate config value from global to channel-specific
This commit is contained in:
parent
3b1c56bbcd
commit
5914499766
@ -43,7 +43,7 @@ def configure(advanced):
|
||||
|
||||
|
||||
User = conf.registerPlugin('User')
|
||||
conf.registerGlobalValue(User, 'listInPrivate',
|
||||
conf.registerChannelValue(User, 'listInPrivate',
|
||||
registry.Boolean(True, _("""Determines whether the output of 'user list'
|
||||
will be sent in private. This prevents mass-highlights of people who use
|
||||
their nick as their bot username.""")))
|
||||
|
@ -88,7 +88,7 @@ class User(callbacks.Plugin):
|
||||
users.append(u.name)
|
||||
if users:
|
||||
utils.sortBy(str.lower, users)
|
||||
private = self.registryValue("listInPrivate")
|
||||
private = self.registryValue("listInPrivate", msg.args[0])
|
||||
irc.reply(format('%L', users), private=private)
|
||||
else:
|
||||
if predicates:
|
||||
|
Loading…
Reference in New Issue
Block a user