Просмотр исходного кода

* Port [3266] to 1.2.14
* Fix cmd_swhois returning results after a server jump.



svn: 3267

Bryan Drewery 19 лет назад
Родитель
Сommit
5a51be63f7
2 измененных файлов с 9 добавлено и 0 удалено
  1. 1 0
      doc/UPDATES
  2. 8 0
      src/mod/server.mod/servmsg.c

+ 1 - 0
doc/UPDATES

@@ -23,6 +23,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Cmd_swhois now displays a list of only 'public' channels as well.
 * Fix cmd_mns_user being ran on self-bot. (fixes #350)
 * Fix cmd_checkchannels not taking slowjoin into account.
+* Fix cmd_swhois returning results after a server jump.
 
 1.2.13 - http://wraith.shatow.net/milestone/1.2.13
 * Fix cmd_chanset accepting invalid flags

+ 8 - 0
src/mod/server.mod/servmsg.c

@@ -987,6 +987,14 @@ static void disconnect_server(int idx, int dolost)
     trying_server = 0;
     lostdcc(idx);
   }
+
+  /* Invalidate the cmd_swhois cache callback data */
+  for (int idx = 0; idx < dcc_total; idx++) {
+    if (dcc[idx].type && dcc[idx].whois[0]) {
+      dcc[idx].whois[0] = 0;
+      dcc[idx].whowas = 0;
+    }
+  }
 }
 
 static void eof_server(int idx)