Skip to content
This repository was archived by the owner on Apr 27, 2019. It is now read-only.

Commit 9528033

Browse files
committed
Fixed merge conflict.
2 parents 2c8ae88 + 2e8bda8 commit 9528033

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

packets/data_types.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ def _encode(self, obj, context):
7070
def _decode(self, obj, context):
7171
return obj.string
7272

73-
7473
class Joiner(Adapter):
7574
def _encode(self, obj, context):
7675
return obj
@@ -84,13 +83,11 @@ def _decode(self, obj, context):
8483
String("string", lambda ctx: ctx.length)
8584
)
8685

87-
8886
class VariantVariant(Construct):
8987
def _parse(self, stream, context):
9088
l = VLQ("").parse_stream(stream)
9189
return [Variant("").parse_stream(stream) for _ in range(l)]
9290

93-
9491
class DictVariant(Construct):
9592
def _parse(self, stream, context):
9693
l = VLQ("").parse_stream(stream)
@@ -120,7 +117,6 @@ def _parse(self, stream, context):
120117
elif x == 7:
121118
return DictVariant("").parse_stream(stream)
122119

123-
124120
class StarByteArray(Construct):
125121
def _parse(self, stream, context):
126122
l = VLQ("").parse_stream(stream)

plugins/core/admin_commands_plugin/admin_command_plugin.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,20 @@ def promote(self, data):
6262
self.logger.trace("Player object in promote command, found by name, is %s." % str(player))
6363
if player is not None:
6464
self.logger.trace("Player object was not None. Dump of player object follows.")
65+
<<<<<<< HEAD
6566
for line in pprint.pformat(player).split("\n"):
6667
self.logger.trace("\t" + line)
6768
old_rank = player.access_level
6869
if old_rank >= self.protocol.player.access_level:
6970
self.logger.trace(
7071
"The old rank was greater or equal to the current rank. Sending a message and returning.")
72+
=======
73+
for line in pprint.pformat(player):
74+
self.logger.trace("\t"+line)
75+
old_rank = player.access_level
76+
if old_rank >= self.protocol.player.access_level:
77+
self.logger.trace("The old rank was greater or equal to the current rank. Sending a message and returning.")
78+
>>>>>>> 2e8bda81d627d13dfb3f4c4f329bd1b2417d3fde
7179
self.protocol.send_chat_message(
7280
"You cannot change that user's access level as they are at least at an equal level as you.")
7381
return

0 commit comments

Comments
 (0)