mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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')
|
User = conf.registerPlugin('User')
|
||||||
conf.registerGlobalValue(User, 'listInPrivate',
|
conf.registerChannelValue(User, 'listInPrivate',
|
||||||
registry.Boolean(True, _("""Determines whether the output of 'user list'
|
registry.Boolean(True, _("""Determines whether the output of 'user list'
|
||||||
will be sent in private. This prevents mass-highlights of people who use
|
will be sent in private. This prevents mass-highlights of people who use
|
||||||
their nick as their bot username.""")))
|
their nick as their bot username.""")))
|
||||||
|
@ -88,7 +88,7 @@ class User(callbacks.Plugin):
|
|||||||
users.append(u.name)
|
users.append(u.name)
|
||||||
if users:
|
if users:
|
||||||
utils.sortBy(str.lower, users)
|
utils.sortBy(str.lower, users)
|
||||||
private = self.registryValue("listInPrivate")
|
private = self.registryValue("listInPrivate", msg.args[0])
|
||||||
irc.reply(format('%L', users), private=private)
|
irc.reply(format('%L', users), private=private)
|
||||||
else:
|
else:
|
||||||
if predicates:
|
if predicates:
|
||||||
|
Loading…
Reference in New Issue
Block a user