1
0
Эх сурвалжийг харах

Fix 'chanset groups group1,group2,group3' not splitting properly (#36)

Bryan Drewery 14 жил өмнө
parent
commit
4c45ecdbbc

+ 1 - 1
src/mod/channels.mod/chanmisc.c

@@ -346,7 +346,7 @@ 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 = changroups.sub(",", " ");
       changroups.trim();
       *(chan->groups) = changroups.split(" ");
       changed_groups = true;