diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 17:04:25 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-10 17:04:25 +0000 |
commit | 2c2b4010bbced084e814f9716f89be33f59953e8 (patch) | |
tree | 447a1186c15b5098b5f63a8c6193debe24437b67 /src/modules | |
parent | 8961d1bdf70abb2ec0e2cffde7f761242e98f540 (diff) |
Fix for templated GetExt
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4280 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_conn_waitpong.cpp | 12 |
1 files 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) { |