From 8ca6455e526e106e2c32a3474789367b880934d1 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Wed, 25 May 2016 21:16:24 +0300 Subject: [PATCH] Throw error if user data is retrieved on invalid IRC sessions. --- modules/irc/Session.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/irc/Session.hpp b/modules/irc/Session.hpp index 155b7556..62a7e256 100644 --- a/modules/irc/Session.hpp +++ b/modules/irc/Session.hpp @@ -255,6 +255,9 @@ public: */ Object & GetData() { + // Validate the handle + Validate(); + // Return the requested information return m_Data; }