소스 검색

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

Bryan Drewery 14 년 전
부모
커밋
4c45ecdbbc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;