this should fix #329

This commit is contained in:
Nikos Kouremenos 2005-05-26 22:02:01 +00:00
parent fb18ff3d0f
commit bc1a96e740
1 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,7 @@ import os
import time
import sre
import traceback
import helpers
from calendar import timegm
import common.xmpp
@ -622,7 +623,8 @@ class Connection:
keyID = gajim.config.get_per('accounts', self.name, 'keyid')
if keyID and USE_GPG:
if not msg:
msg = show
lowered_uf_status_msg = helpers.get_uf_show(show).lower()
msg = "I'm %s" % lowered_uf_status_msg
signed = self.gpg.sign(msg, keyID)
if signed == 'BAD_PASSPHRASE':
signed = ''