Skip to content

Commit

Permalink
remove unused/undocumented SAYBATTLEPRIVATE
Browse files Browse the repository at this point in the history
  • Loading branch information
abma committed Dec 25, 2013
1 parent 17e685f commit 70090b4
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions protocol/Protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
'RING',
'SAYBATTLE',
'SAYBATTLEEX',
'SAYBATTLEPRIVATE',
'SAYBATTLEPRIVATEEX',
'SCRIPT',
'SCRIPTEND',
Expand Down Expand Up @@ -1258,22 +1257,6 @@ def in_SAYBATTLEEX(self, client, msg):
battle = self._root.battles[battle_id]
self.broadcast_SendBattle(battle, 'SAIDBATTLEEX %s %s' % (client.username, msg))

def in_SAYBATTLEPRIVATE(self, client, username, msg):
'''
Send a message to one target user in your current battle.
[host]
@required.str username: The user to receive your message.
@required.str message: The message to send.
'''
battle_id = client.current_battle
if battle_id in self._root.battles:
battle = self._root.battles[battle_id]
if client.username == battle.host and username in battle.users:
user = self.clientFromUsername(username)
if user:
user.Send('SAIDBATTLE %s %s' % (client.username, msg))

def in_SAYBATTLEPRIVATEEX(self, client, username, msg):
'''
Send an action to one target user in your current battle.
Expand Down

0 comments on commit 70090b4

Please sign in to comment.