Sfoglia il codice sorgente

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

Bryan Drewery 14 anni fa
parent
commit
4c45ecdbbc
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
       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;