comparison src/plugins/plugin_xep_0045.py @ 2170:d246666ebe25

i18n: updated sat.po
author Goffi <goffi@goffi.org>
date Mon, 06 Mar 2017 21:22:59 +0100
parents a0e6f7951bd7
children 8b37a62336c3
comparison
equal deleted inserted replaced
2169:f472179305a1 2170:d246666ebe25
419 if room_jid_s: 419 if room_jid_s:
420 muc_service = client.muc_service 420 muc_service = client.muc_service
421 try: 421 try:
422 room_jid = jid.JID(room_jid_s) 422 room_jid = jid.JID(room_jid_s)
423 except (RuntimeError, jid.InvalidFormat, AttributeError): 423 except (RuntimeError, jid.InvalidFormat, AttributeError):
424 return defer.fail(jid.InvalidFormat(_(u"Invalid room identifier: '%s'. Please give a room short or full identifier like 'room' or 'room@%s'.") % (room_jid_s, unicode(muc_service)))) 424 return defer.fail(jid.InvalidFormat(_(u"Invalid room identifier: {room_id}'. Please give a room short or full identifier like 'room' or 'room@{muc_service}'.").format(
425 room_id=room_jid_s,
426 muc_service=unicode(muc_service))))
425 if not room_jid.user: 427 if not room_jid.user:
426 room_jid.user, room_jid.host = room_jid.host, muc_service 428 room_jid.user, room_jid.host = room_jid.host, muc_service
427 else: 429 else:
428 room_jid = self.getUniqueName(profile_key=client.profile) 430 room_jid = self.getUniqueName(profile_key=client.profile)
429 # TODO: error management + signal in bridge 431 # TODO: error management + signal in bridge