Explorar o código

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

svn: 2141
Bryan Drewery %!s(int64=21) %!d(string=hai) anos
pai
achega
536192b112
Modificáronse 1 ficheiros con 2 adicións e 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] = "";