Sfoglia il codice sorgente

* Copy the server nick from soft restart to origbotname (#103)

svn: 2141
Bryan Drewery 21 anni fa
parent
commit
536192b112
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/misc.c

+ 2 - 0
src/misc.c

@@ -601,6 +601,8 @@ readsocks(const char *fname)
 
   unlink(fname);
   fclose(f);
+  if (nick)
+    strlcpy(origbotname, nick, sizeof(origbotname));
   if (servidx >= 0) {
     char nserv[50] = "";