Merge pull request #1048 from Hasimir/gpg-extension

Gpg extension - fix subkey/master key conflict
This commit is contained in:
Valentin Lorentz 2015-02-07 08:09:12 +01:00
commit 9b36fc9427

View File

@ -500,6 +500,7 @@ class User(callbacks.Plugin):
r'-----BEGIN PGP SIGNATURE-----\r?\n.*'
r'\r?\n-----END PGP SIGNATURE-----',
re.S)
@internationalizeDocstring
def auth(self, irc, msg, args, url):
"""<url>
@ -523,7 +524,7 @@ class User(callbacks.Plugin):
'Authentication aborted.'), Raise=True)
verified = gpg.keyring.verify(data)
if verified and verified.valid:
keyid = verified.key_id
keyid = verified.pubkey_fingerprint[-16:]
prefix, expiry = self._tokens.pop(token)
found = False
for (id, user) in ircdb.users.items():