From 2c2b4010bbced084e814f9716f89be33f59953e8 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 10 Jul 2006 17:04:25 +0000 Subject: Fix for templated GetExt git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4280 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_conn_waitpong.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/modules/m_conn_waitpong.cpp b/src/modules/m_conn_waitpong.cpp index 804026adb..353bd763f 100644 --- a/src/modules/m_conn_waitpong.cpp +++ b/src/modules/m_conn_waitpong.cpp @@ -80,7 +80,8 @@ class ModuleWaitPong : public Module { if(command == "PONG") { - char* pingrpl = user->GetExt("waitpong_pingstr"); + char* pingrpl; + user->GetExt("waitpong_pingstr", pingrpl); if(pingrpl) { @@ -104,12 +105,14 @@ class ModuleWaitPong : public Module virtual bool OnCheckReady(userrec* user) { - return (!user->GetExt("waitpong_pingstr")); + char* pingrpl; + return (!user->GetExt("waitpong_pingstr", pingrpl)); } virtual void OnUserDisconnect(userrec* user) { - char* pingrpl = user->GetExt("waitpong_pingstr"); + char* pingrpl; + user->GetExt("waitpong_pingstr", pingrpl); if(pingrpl) { @@ -123,7 +126,8 @@ class ModuleWaitPong : public Module if(target_type == TYPE_USER) { userrec* user = (userrec*)item; - char* pingrpl = user->GetExt("waitpong_pingstr"); + char* pingrpl; + user->GetExt("waitpong_pingstr", pingrpl); if(pingrpl) { -- cgit v1.2.3