diff -r 7666e83ef566 -r 3af514e12267 sourcemm/sourcemm.cpp --- a/sourcemm/sourcemm.cpp Fri Apr 06 21:01:43 2007 +0000 +++ b/sourcemm/sourcemm.cpp Sat Apr 07 04:31:23 2007 +0000 @@ -58,7 +58,8 @@ SourceHook::List gamedll_list; SourceHook::CallClass *g_GameDllPatch; int g_GameDllVersion = 0; -const char VSPIFACE[] = "ISERVERPLUGINCALLBACKS"; +const char VSPIFACE_001[] = "ISERVERPLUGINCALLBACKS001"; +const char VSPIFACE_002[] = "ISERVERPLUGINCALLBACKS002"; const char GAMEINFO_PATH[] = "|gameinfo_path|"; void ClearGamedllList(); @@ -226,13 +227,16 @@ return NULL; } - if (strncmp(iface, VSPIFACE, 22) == 0) + /* We check these separately because we can't reply + * unless our interface version really matches. + */ + if ((strcmp(iface, VSPIFACE_002) == 0) + || strcmp(iface, VSPIFACE_001) == 0) { if (ret) { *ret = IFACE_OK; } - return &g_VspListener; }