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

* Port [3104] to 1.2.12
* Fix ',' character being allowed with 'set list' functions. (fixes #308)


svn: 3105

Bryan Drewery 19 лет назад
Родитель
Сommit
49eff33069
2 измененных файлов с 5 добавлено и 0 удалено
  1. 1 0
      doc/UPDATES
  2. 4 0
      src/set.c

+ 1 - 0
doc/UPDATES

@@ -16,6 +16,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * cmd_mop no longer defaults to console channel if no channel is specified. (fixes #302)
 * Fix cmds: bot[jump|server|version|msg] not running locally correctly. (fixes #304)
 * Fix cmd_chinfo to use the standard 'whois restrictions' (fixes #303)
+* Fix ',' character being allowed with 'set list' functions. (fixes #308)
 
 1.2.11 - http://wraith.shatow.net/milestone/1.2.11
 * Fixed typo in help for .set/.conf/.channel

+ 4 - 0
src/set.c

@@ -897,6 +897,10 @@ int cmd_set_real(const char *botnick, int idx, char *par)
     }
 
     if (list) {
+      if (strchr(data, ',')) {
+        dprintf(idx, "The ',' character may not be used with set list functions.\n");
+        return 0;
+      }
       if (list == LIST_ADD) {
         if (var_add_list(botnick, var, data)) {
           dprintf(idx, "Added '%s' to %s list.\n", data, var->name);