Fix code style

This commit is contained in:
nyuszika7h 2014-08-03 13:59:35 +02:00
parent ddbfad5086
commit d1ecfe3153

View File

@ -186,7 +186,6 @@ class NickAuth(callbacks.Plugin):
def doJoin(self, irc, msg): def doJoin(self, irc, msg):
# extended-join is not supported
if len(msg.args) < 2: if len(msg.args) < 2:
return return
@ -207,7 +206,7 @@ class NickAuth(callbacks.Plugin):
ircdb.users.setUser(user, flush=False) ircdb.users.setUser(user, flush=False)
def do354(self, irc, msg): def do354(self, irc, msg):
(_, ident, host, nick, account) = msg.args (__, ident, host, nick, account) = msg.args
prefix = '%s!%s@%s' % (nick, ident, host) prefix = '%s!%s@%s' % (nick, ident, host)
user = ircdb.users.getUserFromNick(irc.network, account) user = ircdb.users.getUserFromNick(irc.network, account)
@ -218,11 +217,6 @@ class NickAuth(callbacks.Plugin):
user = None user = None
if user: if user:
#if account == '0':
# user.clearAuth()
#else:
# user.addAuth(prefix)
# ircdb.users.setUser(user, flush=False)
if account != '0': if account != '0':
user.addAuth(prefix) user.addAuth(prefix)
ircdb.users.setUser(user, flush=False) ircdb.users.setUser(user, flush=False)