فهرست منبع

* Handle accidental commas in list

Bryan Drewery 14 سال پیش
والد
کامیت
6c5a177f4f
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/mod/channels.mod/chanmisc.c

+ 2 - 0
src/mod/channels.mod/chanmisc.c

@@ -345,6 +345,8 @@ int channel_modify(char *result, struct chanset_t *chan, int items, char **item,
       }
       // Get string into right format
       bd::String changroups(item[i]);
+      // Replace commas with spaces to be in proper format
+      changroups.sub(",", " ");
       changroups.trim();
       strlcpy(chan->groups, changroups.c_str(), sizeof(chan->groups));
     } else if (!strcmp(item[i], "topic")) {