mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Fix code style
This commit is contained in:
parent
ddbfad5086
commit
d1ecfe3153
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user