Added return value to on_user_sent_packet