new commands: modconnect, modconnectadmin & modlanconnect

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4391 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2009-05-16 17:18:17 +00:00
parent d2fe4fa70e
commit 0650dd3a64
8 changed files with 56 additions and 16 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ char msgsizelookup(int msg)
const char *genpwdhash(const char *name, const char *pwd, int salt)
{
static string temp;
s_sprintf(temp)("%s %d %s %s %d", pwd, salt, name, pwd, PROTOCOL_VERSION);
s_sprintf(temp)("%s %d %s %s %d", pwd, salt, name, pwd, abs(PROTOCOL_VERSION));
tiger::hashval hash;
tiger::hash((uchar *)temp, (int)strlen(temp), hash);
s_sprintf(temp)("%llx %llx %llx", hash.chunks[0], hash.chunks[1], hash.chunks[2]);