Kaynağa Gözat

* Cookies no longer fail if the opping bot changes nick after queueing the mode.

Bryan Drewery 17 yıl önce
ebeveyn
işleme
6937edd8fb
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 0
      doc/UPDATES
  2. 1 2
      src/mod/irc.mod/irc.c

+ 1 - 0
doc/UPDATES

@@ -1,4 +1,5 @@
 * Cookie op algorithm changed again, they can no longer be easily reused (fixes #402) Thank you mulder.
+* Cookies no longer fail if the opping bot changes nick after queueing the mode.
 
 1.2.17 - http://wraith.botpack.net/milestone/1.2.17
 * Binary pass prompt has been changed to be more clear.

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

@@ -333,12 +333,11 @@ const char * cookie_hash(const char* chname, const memberlist* opper, const memb
   char tohash[201] = "";
   const char salt2[] = SALT2;
 
-  simple_snprintf(tohash, sizeof(tohash), STR("%c%s%c%c%c%c%c%s%s%s%s"),
+  simple_snprintf(tohash, sizeof(tohash), STR("%c%s%c%c%c\n%c%c%s%s%s"),
                                      salt2[0], 
                                      ts,
                                      salt[0], salt[1], salt[2], salt[3],
                                      salt2[15],
-                                     opper->nick,
                                      opped->nick,
                                      opped->userhost,
                                      key);