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

* conf_addbot() adding ip6 wrong

svn: 1007
Bryan Drewery 22 лет назад
Родитель
Сommit
52eaae104a
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/conf.c

+ 1 - 0
doc/UPDATES

@@ -4,6 +4,7 @@ This is a summary of ChangeLog basically.
 
 
 1.Fixed cosmetic error in help:decrypt.
 1.Fixed cosmetic error in help:decrypt.
 2.Fixed a chmod() problem when the config was missing.
 2.Fixed a chmod() problem when the config was missing.
+3.Fixed config file not saving/recognizing IPV6 ip.
 
 
 1.1.7
 1.1.7
 
 

+ 1 - 1
src/conf.c

@@ -345,7 +345,7 @@ conf_addbot(char *nick, char *ip, char *host, char *ip6)
 
 
   if (ip && strcmp(ip, "."))
   if (ip && strcmp(ip, "."))
     bot->ip = strdup(ip);
     bot->ip = strdup(ip);
-  if (ip6 && strcmp(ip, "."))
+  if (ip6 && strcmp(ip6, "."))
     bot->ip6 = strdup(ip6);
     bot->ip6 = strdup(ip6);
 
 
   bot->u = NULL;
   bot->u = NULL;