Skip to content

Commit

Permalink
remove FORGEREVERSEMSG
Browse files Browse the repository at this point in the history
  • Loading branch information
abma committed Nov 27, 2014
1 parent c04f426 commit 72df1a2
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions protocol/Protocol.py
Expand Up @@ -147,7 +147,6 @@
'SETLATESTSPRINGVERSION',
#########
# users
'FORGEREVERSEMSG',
'GETLASTLOGINTIME',
'GETACCOUNTACCESS',
'FORCEJOIN',
Expand Down Expand Up @@ -2691,28 +2690,6 @@ def in_CHANGEPASSWORD(self, client, cur_password, new_password):
else:
self.out_SERVERMSG(client, 'Incorrect old password.')


def in_FORGEREVERSEMSG(self, client, user, msg):
'''
deprecated, TODO: will be removed on 7.12.2014:
https://github.com/ZeroK-RTS/Zero-K-Infrastructure/issues/19
'''
if client.compat['cl']:
self.out_SERVERMSG(client, 'Forging messages is deprecated and will be removed on 7.12.2014.')
return

if not (msg and msg.split(' ')[0] in ("LEAVEBATTLE", "JOINBATTLE")):
self.out_SERVERMSG(client, "Invalid call to FORGEREVERSEMSG, this command is deprecated and will be removed on 7.12.2014, don't use it: %s" %(msg), True)
return

if not client.username == "Nightwatch":
self.out_SERVERMSG(client, "Forging messages is deprecated, only exception for Nightwatch exists and will be removed on 7.12.2014", True)
return

if user in self._root.usernames:
self._root.console_write('FORGEREVERSEMSG %s %s %s' %(client.username, user, msg))
self._handle(self._root.usernames[user], msg)

def in_GETLOBBYVERSION(self, client, username):
'''
Get the lobby version of target user.
Expand Down

0 comments on commit 72df1a2

Please sign in to comment.