add account name to XEP-70 dialog when several are connected

This commit is contained in:
Yann Leboulanger 2007-09-17 18:03:44 +00:00
parent 9a986c2fc6
commit b79170cc70
1 changed files with 2 additions and 0 deletions

View File

@ -432,6 +432,8 @@ class Interface:
gajim.connections[account].build_http_auth_answer(iq_obj, answer)
sec_msg = _('Do you accept this request?')
if gajim.get_number_of_connected_accounts() > 1:
sec_msg = _('Do you accept this request on account %s?') % account
if data[4]:
sec_msg = data[4] + '\n' + sec_msg
self.dialog = dialogs.YesNoDialog(_('HTTP (%s) Authorization for %s (id: %s)') \