pep.py/friendRemoveEvent.py
2016-04-19 19:40:59 +02:00

11 lines
347 B
Python

import userHelper
import clientPackets
def handle(userToken, packetData):
# Friend remove packet
packetData = clientPackets.addRemoveFriend(packetData)
userHelper.removeFriend(userToken.userID, packetData["friendID"])
# Console output
print("> {} have removed {} from their friends".format(userToken.username, str(packetData["friendID"])))