Ctcp: Fix name-crash which made --nicks always interpreted as true. Closes GH-664.

This commit is contained in:
Valentin Lorentz 2014-05-31 20:47:16 +02:00
parent b14ed2c5d9
commit 76bc193455

View File

@ -141,9 +141,9 @@ class Ctcp(callbacks.PluginRegexp):
def doReply(): def doReply():
if self.versions: if self.versions:
L = [] L = []
for (reply, nicks) in self.versions.iteritems(): for (reply, nickslist) in self.versions.iteritems():
if nicks: if nicks:
L.append(format('%L responded with %q', nicks, reply)) L.append(format('%L responded with %q', nickslist, reply))
else: else:
L.append(reply) L.append(reply)
irc.reply(format('%L', L)) irc.reply(format('%L', L))