瀏覽代碼

* Dont need to hash the partial chan anymore as the entire channel is in the key now

Bryan Drewery 17 年之前
父節點
當前提交
dddf8b849a
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      src/mod/irc.mod/irc.c

+ 1 - 5
src/mod/irc.mod/irc.c

@@ -333,12 +333,8 @@ const char * cookie_hash(const char* chname, const memberlist* opper, const memb
   char tohash[201] = "";
   char tohash[201] = "";
   const char salt2[] = SALT2;
   const char salt2[] = SALT2;
 
 
-  /* Only use first 3 chars of chan */
-  simple_snprintf(tohash, sizeof(tohash), STR("%c%c%c%c%s%c%c%c%c%c%s%s%s%s"),
+  simple_snprintf(tohash, sizeof(tohash), STR("%c%s%c%c%c%c%c%s%s%s%s"),
                                      salt2[0], 
                                      salt2[0], 
-                                     toupper(chname[0]),
-                                     toupper(chname[1]),
-                                     toupper(chname[2]),  
                                      ts,
                                      ts,
                                      salt[0], salt[1], salt[2], salt[3],
                                      salt[0], salt[1], salt[2], salt[3],
                                      salt2[15],
                                      salt2[15],