You could try if adding the following code to libcod works.
functions.hpp (after SV_BeginDownload_f)
PHP Code:
typedef int (*SV_UserinfoChanged_f)(int a1);
static SV_UserinfoChanged_f_t SV_UserinfoChanged_f = (SV_UserinfoChanged_f_t)NULL;
libcod.cpp (after hook_SV_BeginDownload_f)
PHP Code:
void hook_SV_UserinfoChanged_f( int a1 ) {
char * userinfo = Cmd_Argv(1);
if(strlen(userinfo) > 0) {
SV_UserinfoChanged_f(a1);
}
}
(after addressToDownloadPointer)
PHP Code:
#if COD_VERSION == COD2_1_0
int * addressToUserInfoPointer = (int *)0x0817D9E4;
#elif COD_VERSION == COD2_1_2
int * addressToUserInfoPointer = (int *)0x0817C9C4;
#elif COD_VERSION == COD2_1_3
int * addressToUserInfoPointer = (int *)0x0815D564;
#else
#warning int *addressToUserInfoPointer = NULL;
int *addressToUserInfoPointer = NULL;
#endif
#if COD_VERSION == COD2_1_0 || COD_VERSION == COD2_1_2 || COD_VERSION == COD2_1_3
SV_UserinfoChanged_f = (SV_UserinfoChanged_f_t)*addressToUserInfoPointer;
*addressToUserInfoPointer = (int)hook_SV_UserinfoChanged_f;
#endif