Corrected messages on client
This commit is contained in:
parent
a99f7fb241
commit
f8b0ca0c31
@ -47,9 +47,9 @@ class SyncClientProtocol(CommandProtocol):
|
|||||||
else:
|
else:
|
||||||
who, where, what = args[0], args[1], None
|
who, where, what = args[0], args[1], None
|
||||||
if what:
|
if what:
|
||||||
print '%s is present and is playing \'%s\' in a room \'%s\'' % (who, what, where)
|
print '%s is present and is playing \'%s\' in the room: \'%s\'' % (who, what, where)
|
||||||
else:
|
else:
|
||||||
print '%s is present in a room \'%s\'' % (who, where)
|
print '%s is present in the room: \'%s\'' % (who, where)
|
||||||
|
|
||||||
@arg_count(4, 5)
|
@arg_count(4, 5)
|
||||||
def handle_connected_state(self, args):
|
def handle_connected_state(self, args):
|
||||||
@ -83,7 +83,7 @@ class SyncClientProtocol(CommandProtocol):
|
|||||||
@arg_count(3)
|
@arg_count(3)
|
||||||
def handle_connected_playing(self, args):
|
def handle_connected_playing(self, args):
|
||||||
who, where, what = args
|
who, where, what = args
|
||||||
print '%s is playing \'%s\' in a room \'%s\'' % (who, what, where)
|
print '%s is playing \'%s\' in the room: \'%s\'' % (who, what, where)
|
||||||
|
|
||||||
@arg_count(1)
|
@arg_count(1)
|
||||||
def handle_connected_joined(self, args):
|
def handle_connected_joined(self, args):
|
||||||
@ -91,7 +91,7 @@ class SyncClientProtocol(CommandProtocol):
|
|||||||
|
|
||||||
@arg_count(2)
|
@arg_count(2)
|
||||||
def handle_connected_room(self, args):
|
def handle_connected_room(self, args):
|
||||||
print '%s entered a room \'%s\'' % (args[0], args[1])
|
print '%s entered the room: \'%s\'' % (args[0], args[1])
|
||||||
|
|
||||||
@arg_count(1)
|
@arg_count(1)
|
||||||
def handle_connected_left(self, args):
|
def handle_connected_left(self, args):
|
||||||
@ -412,7 +412,7 @@ class Manager(object):
|
|||||||
if abs(diff) > 4:
|
if abs(diff) > 4:
|
||||||
self.player.set_position(position)
|
self.player.set_position(position)
|
||||||
#self.player.set_paused(True)
|
#self.player.set_paused(True)
|
||||||
print "Rewind due to time difference"
|
print "Rewinded due to time difference"
|
||||||
|
|
||||||
if self.player_paused and not paused:
|
if self.player_paused and not paused:
|
||||||
self.player_paused_at = None
|
self.player_paused_at = None
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user