Improved PUG handling based on IRC events.