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

* Fixed tthe new data not showing with botset.

svn: 2193
Bryan Drewery 21 лет назад
Родитель
Сommit
c27277b569
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/set.c

+ 1 - 1
src/set.c

@@ -770,7 +770,7 @@ void cmd_set_real(const char *botnick, int idx, char *par)
       if (botnick)
         var_set_userentry(botnick, name, data);
 
-      dprintf(idx, "%s: %s\n", name, botnick ? (var->ldata ? var->ldata : "(not set)") : (var->gdata ? var->gdata : "(not set)"));
+      dprintf(idx, "%s: %s\n", name, botnick ? (!data || (data[0] == '-') ? "(not set)" : data) : (var->gdata ? var->gdata : "(not set)"));
     }
     if (conf.bot->hub)
       write_userfile(idx);