Quellcode durchsuchen

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

Bryan Drewery vor 14 Jahren
Ursprung
Commit
4c45ecdbbc
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/mod/channels.mod/chanmisc.c

+ 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
       // Get string into right format
       bd::String changroups(item[i]);
       bd::String changroups(item[i]);
       // Replace commas with spaces to be in proper format
       // Replace commas with spaces to be in proper format
-      changroups.sub(",", " ");
+      changroups = changroups.sub(",", " ");
       changroups.trim();
       changroups.trim();
       *(chan->groups) = changroups.split(" ");
       *(chan->groups) = changroups.split(" ");
       changed_groups = true;
       changed_groups = true;