From 46a3094466e8ce81024d21e0ffb44f6e9206749a Mon Sep 17 00:00:00 2001 From: Alexander Cherniuk Date: Thu, 18 Mar 2010 08:17:48 +0200 Subject: [PATCH] Touchup for /dtmf implementation --- src/command_system/implementation/standard.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/command_system/implementation/standard.py b/src/command_system/implementation/standard.py index 18ee00223..485fa9d7a 100644 --- a/src/command_system/implementation/standard.py +++ b/src/command_system/implementation/standard.py @@ -173,13 +173,12 @@ class StandardChatCommands(CommandContainer): 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)