def do354(self, irc, msg):
        if len(msg.args) != 6 or msg.args[1] != '1':
            return

        (__, ___, ident, host, nick, account) = msg.args
        prefix = '%s!%s@%s' % (nick, ident, host)
        user = ircdb.users.getUserFromNick(irc.network, account)

        if account != '0':
            self._auth(irc, prefix, account)
dataset/ETHPy150Open ProgVal/Limnoria/plugins/NickAuth/plugin.py/NickAuth.do354/original