changeset 204ec09ebdc1 in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=204ec09ebdc1 description: Touchup for /dtmf implementation
diffstat:
src/command_system/implementation/standard.py | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r 287eea4c6bad -r 204ec09ebdc1 src/command_system/implementation/standard.py --- a/src/command_system/implementation/standard.py Thu Mar 18 07:37:49 2010 +0200 +++ b/src/command_system/implementation/standard.py Thu Mar 18 08:17:48 2010 +0200 @@ -173,13 +173,12 @@ gajim.connections[self.account].sendPing(self.contact)
@command - @documentation(_("Sends DTMF events through an open audio session")) + @documentation(_("Send DTMF events through an open audio session")) def dtmf(self, events): if not self.audio_sid: raise CommandError(_("There is no open audio session with this contact")) # Valid values for DTMF tones are *, # or a number - events = [event for event in events - if event in ('*', '#') or event.isdigit()] + events = filter(lambda e: e in ('*', '#') or e.isdigit (), events) if events: session = gajim.connections[self.account].get_jingle_session( self.contact.get_full_jid(), self.audio_sid)