Oops, should've used irc.error...brainfart!

This commit is contained in:
Jeremy Fincher 2003-12-10 07:32:04 +00:00
parent da6743b9b7
commit 94cdec8a26

View File

@ -133,7 +133,8 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
to protect the secrecy of secret channels. to protect the secrecy of secret channels.
""" """
if ircutils.isChannel(msg.args[0]): if ircutils.isChannel(msg.args[0]):
raise callbacks.Error irc.error(msg, conf.replyRequiresPrivacy)
return
L = irc.state.channels.keys() L = irc.state.channels.keys()
if L: if L:
utils.sortBy(ircutils.toLower, L) utils.sortBy(ircutils.toLower, L)