def _auth(self, irc, prefix, account):
        user = ircdb.users.getUserFromNick(irc.network, account)

        if not user:
            try:
                user = ircdb.users.getUser(prefix)
            except __HOLE__:
                user = None

        if user:
                user.addAuth(prefix)
                ircdb.users.setUser(user, flush=False)
dataset/ETHPy150Open ProgVal/Limnoria/plugins/NickAuth/plugin.py/NickAuth._auth