pep.py/events/friendRemoveEvent.py

12 lines
413 B
Python
Raw Normal View History

2016-05-18 17:12:46 +00:00
from helpers import userHelper
from constants import clientPackets
from helpers import logHelper as log
2016-04-19 17:40:59 +00:00
def handle(userToken, packetData):
# Friend remove packet
packetData = clientPackets.addRemoveFriend(packetData)
userHelper.removeFriend(userToken.userID, packetData["friendID"])
# Console output
log.info("{} have removed {} from their friends".format(userToken.username, str(packetData["friendID"])))