Explorar el Código

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

svn: 2141
Bryan Drewery hace 21 años
padre
commit
536192b112
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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] = "";