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
1 changed files with 2 additions and 2 deletions

View File

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