Removed alias duplication of some commands

This commit is contained in:
Alexander Cherniuk 2010-01-10 08:42:08 +02:00
parent 760af376f4
commit e525858231

View file

@ -171,7 +171,7 @@ class StandardChatCommands(CommandContainer):
raise CommandError(_('Command is not supported for zeroconf accounts')) raise CommandError(_('Command is not supported for zeroconf accounts'))
gajim.connections[self.account].sendPing(self.contact) gajim.connections[self.account].sendPing(self.contact)
@command('dtmf') @command
@documentation(_("Sends DTMF events through an open audio session")) @documentation(_("Sends DTMF events through an open audio session"))
def dtmf(self, events): def dtmf(self, events):
if not self.audio_sid: if not self.audio_sid:
@ -187,7 +187,7 @@ class StandardChatCommands(CommandContainer):
else: else:
raise CommandError(_("No valid DTMF event specified")) raise CommandError(_("No valid DTMF event specified"))
@command('audio') @command
@documentation(_("Toggle audio session")) @documentation(_("Toggle audio session"))
def audio(self): def audio(self):
if self.audio_state == self.JINGLE_STATE_NOT_AVAILABLE: if self.audio_state == self.JINGLE_STATE_NOT_AVAILABLE:
@ -198,7 +198,7 @@ class StandardChatCommands(CommandContainer):
state = self._audio_button.get_active() state = self._audio_button.get_active()
self._audio_button.set_active(not state) self._audio_button.set_active(not state)
@command('video') @command
@documentation(_("Toggle video session")) @documentation(_("Toggle video session"))
def video(self): def video(self):
if self.video_state == self.JINGLE_STATE_NOT_AVAILABLE: if self.video_state == self.JINGLE_STATE_NOT_AVAILABLE: