Anonymous: bug fix (_ was used as a temporary variable name)

This commit is contained in:
Valentin Lorentz 2011-06-26 11:12:28 +02:00
parent 509a6c1780
commit a815f11e51

View File

@ -51,7 +51,7 @@ class Anonymous(callbacks.Plugin):
def _preCheck(self, irc, msg, target, action): def _preCheck(self, irc, msg, target, action):
if self.registryValue('requireRegistration'): if self.registryValue('requireRegistration'):
try: try:
_ = ircdb.users.getUser(msg.prefix) foo = ircdb.users.getUser(msg.prefix)
except KeyError: except KeyError:
irc.errorNotRegistered(Raise=True) irc.errorNotRegistered(Raise=True)
capability = self.registryValue('requireCapability') capability = self.registryValue('requireCapability')