From a06b691f297325ac35b18fff0b4b89232ecd8bd6 Mon Sep 17 00:00:00 2001 From: Et0h Date: Fri, 17 Oct 2014 15:39:22 +0100 Subject: [PATCH] Rename 'i'/'identify' to 'auth' to avoid confusion with 'l'/'list' --- syncplay/constants.py | 2 +- syncplay/messages.py | 2 +- syncplay/ui/consoleUI.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/syncplay/constants.py b/syncplay/constants.py index 12545e5..0e6b66d 100644 --- a/syncplay/constants.py +++ b/syncplay/constants.py @@ -46,7 +46,7 @@ COMMANDS_PAUSE = ["p", "play", "pause"] COMMANDS_ROOM = ["r", "room"] COMMANDS_HELP = ['help', 'h', '?', '/?', r'\?'] COMMANDS_CREATE = ['c','create'] -COMMANDS_IDENTIFY = ['i','identify'] +COMMANDS_AUTH = ['a','auth'] MPC_MIN_VER = "1.6.4" VLC_MIN_VERSION = "2.0.0" VLC_INTERFACE_MIN_VERSION = "0.2.1" diff --git a/syncplay/messages.py b/syncplay/messages.py index 23ed522..77a7d07 100755 --- a/syncplay/messages.py +++ b/syncplay/messages.py @@ -54,7 +54,7 @@ en = { "commandlist-notification/seek" : "\t[s][+-]time - seek to the given value of time, if + or - is not specified it's absolute time in seconds or min:sec", "commandlist-notification/help" : "\th - this help", "commandlist-notification/create" : "\tc - create controlled room using name of current room", - "commandlist-notification/identify" : "\ti [password] - identify as room controller with controller password", + "commandlist-notification/auth" : "\ta [password] - authenticate as room controller with controller password", "syncplay-version-notification" : "Syncplay version: {}", # syncplay.version "more-info-notification" : "More info available at: {}", # projectURL diff --git a/syncplay/ui/consoleUI.py b/syncplay/ui/consoleUI.py index 8a60c68..6af11b6 100644 --- a/syncplay/ui/consoleUI.py +++ b/syncplay/ui/consoleUI.py @@ -145,7 +145,7 @@ class ConsoleUI(threading.Thread): self._syncplayClient.sendRoom() elif command.group('command') in constants.COMMANDS_CREATE: self._syncplayClient.createControlledRoom() - elif command.group('command') in constants.COMMANDS_IDENTIFY: + elif command.group('command') in constants.COMMANDS_AUTH: controlpassword = command.group('parameter') self._syncplayClient.identifyAsController(controlpassword) else: @@ -161,7 +161,7 @@ class ConsoleUI(threading.Thread): self.showMessage(getMessage("commandlist-notification/seek"), True) self.showMessage(getMessage("commandlist-notification/help"), True) self.showMessage(getMessage("commandlist-notification/create"), True) - self.showMessage(getMessage("commandlist-notification/identify"), True) + self.showMessage(getMessage("commandlist-notification/auth"), True) self.showMessage(getMessage("syncplay-version-notification").format(syncplay.version), True) self.showMessage(getMessage("more-info-notification").format(syncplay.projectURL), True)