Change User.listInPrivate config value from global to channel-specific

This commit is contained in:
jacksonmj 2015-08-31 12:35:24 +00:00
parent 3b1c56bbcd
commit 5914499766
2 changed files with 2 additions and 2 deletions

View File

@ -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.""")))

View File

@ -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: