From 0857956c404c8710cc2c3e014fcd6f335587bd93 Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Fri, 29 Jun 2012 11:05:49 +0100 Subject: [PATCH] Changed forward name to OnClientPreConnectEx. --- connect.inc | 2 +- connect.sp | 2 +- extension.cpp | 2 +- sdk/smsdk_config.hpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/connect.inc b/connect.inc index 8562811..c75d44b 100644 --- a/connect.inc +++ b/connect.inc @@ -3,7 +3,7 @@ #endif #define _connect_included -forward bool:OnClientPreConnect(const String:name[], String:password[255], const String:ip[], const String:steamID[], String:rejectReason[255]); +forward bool:OnClientPreConnectEx(const String:name[], String:password[255], const String:ip[], const String:steamID[], String:rejectReason[255]); public Extension:__ext_Connect = { diff --git a/connect.sp b/connect.sp index 4d92548..14063d4 100644 --- a/connect.sp +++ b/connect.sp @@ -4,7 +4,7 @@ #define REQUIRE_EXTENSIONS #include -public bool:OnClientPreConnect(const String:name[], String:password[255], const String:ip[], const String:steamID[], String:rejectReason[255]) +public bool:OnClientPreConnectEx(const String:name[], String:password[255], const String:ip[], const String:steamID[], String:rejectReason[255]) { PrintToServer("----------------\nName: %s\nPassword: %s\nIP: %s\nSteamID: %s\n----------------", name, password, ip, steamID); diff --git a/extension.cpp b/extension.cpp index 70a71c0..fa3e3ba 100644 --- a/extension.cpp +++ b/extension.cpp @@ -350,7 +350,7 @@ bool Connect::SDK_OnLoad(char *error, size_t maxlen, bool late) CREATE_DETOUR(CBaseServer__ConnectClient); CREATE_DETOUR(CBaseServer__CheckChallengeType); - g_pConnectForward = g_pForwards->CreateForward("OnClientPreConnect", ET_LowEvent, 5, NULL, Param_String, Param_String, Param_String, Param_String, Param_String); + g_pConnectForward = g_pForwards->CreateForward("OnClientPreConnectEx", ET_LowEvent, 5, NULL, Param_String, Param_String, Param_String, Param_String, Param_String); return true; } diff --git a/sdk/smsdk_config.hpp b/sdk/smsdk_config.hpp index 07cc74b..b3b5a0a 100644 --- a/sdk/smsdk_config.hpp +++ b/sdk/smsdk_config.hpp @@ -37,7 +37,7 @@ /* Basic information exposed publicly */ #define SMEXT_CONF_NAME "Connect" #define SMEXT_CONF_DESCRIPTION "" -#define SMEXT_CONF_VERSION "1.0.0" +#define SMEXT_CONF_VERSION "1.1.0" #define SMEXT_CONF_AUTHOR "Asher \"asherkin\" Baker" #define SMEXT_CONF_URL "http://limetech.org/" #define SMEXT_CONF_LOGTAG "CONNECT"