Merge branch 'nick-access'

This commit is contained in:
James McCoy 2011-10-23 20:33:41 -04:00
commit 755fe11982

View File

@ -789,7 +789,8 @@ class Channel(callbacks.Plugin):
msg.args[0] != channel and \ msg.args[0] != channel and \
(ircutils.isChannel(msg.args[0]) or \ (ircutils.isChannel(msg.args[0]) or \
msg.nick not in irc.state.channels[channel].users): msg.nick not in irc.state.channels[channel].users):
irc.error('You don\'t have access to that information.') irc.error('You don\'t have access to that information.',
Raise=True)
L = list(irc.state.channels[channel].users) L = list(irc.state.channels[channel].users)
utils.sortBy(str.lower, L) utils.sortBy(str.lower, L)
irc.reply(utils.str.commaAndify(L)) irc.reply(utils.str.commaAndify(L))