]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/gameserv.cpp
Updated TODO and fixed the hashing algorithm for P10 numerics + others' nickname...
[irc/gameservirc.git] / gameserv / gameserv.cpp
index c5e9cdfbd806cbdd86041a47e560cd9704796d8b..e97642002e2d12065cec71e44e1f7ab5fa9b3062 100644 (file)
@@ -2919,7 +2919,11 @@ unsigned long HASH(const unsigned char *name, int size_of_table)
 
   while (*name)
   {
-    h = (h << 4) + tolower(*name++);
+    #ifdef P10
+       h = (h << 4) + (*name++); // Case sensitive for numerics
+    #else
+       h = (h << 4) + tolower(*name++);
+    #endif
     if ((g = (h & 0xF0000000)))
       h ^= g >> 24;
     h &= ~g;