|
@@ -902,7 +902,7 @@ Context;
|
|
|
if (local && (me = module_find("channels", 0, 0))) {
|
|
if (local && (me = module_find("channels", 0, 0))) {
|
|
|
/* tcl_channel_modify(0, chan, 1, options) */
|
|
/* tcl_channel_modify(0, chan, 1, options) */
|
|
|
Function *func = me->funcs;
|
|
Function *func = me->funcs;
|
|
|
- char *list[2], *buf2, *bak;
|
|
|
|
|
|
|
+ char *buf2, *bak;
|
|
|
struct chanset_t *ch;
|
|
struct chanset_t *ch;
|
|
|
int all = 0;
|
|
int all = 0;
|
|
|
|
|
|
|
@@ -916,6 +916,7 @@ Context;
|
|
|
buf2 = nmalloc(strlen(options) + 1);
|
|
buf2 = nmalloc(strlen(options) + 1);
|
|
|
|
|
|
|
|
while (ch) {
|
|
while (ch) {
|
|
|
|
|
+ char *list[2];
|
|
|
strcpy(buf2, bak);
|
|
strcpy(buf2, bak);
|
|
|
options = buf2;
|
|
options = buf2;
|
|
|
list[0] = newsplit(&options);
|
|
list[0] = newsplit(&options);
|
|
@@ -927,10 +928,8 @@ Context;
|
|
|
}
|
|
}
|
|
|
/* chanints */
|
|
/* chanints */
|
|
|
list[1] = options;
|
|
list[1] = options;
|
|
|
- /* Par gets modified in tcl channel_modify under some
|
|
|
|
|
- * circumstances, so save it now.
|
|
|
|
|
- */
|
|
|
|
|
- (func[38]) (0, ch, 2, list); /* tcl_channel_modify() */
|
|
|
|
|
|
|
+ (func[38]) (0, ch, 2, list); /* tcl_channel_modify() */
|
|
|
|
|
+ break;
|
|
|
}
|
|
}
|
|
|
if (all)
|
|
if (all)
|
|
|
ch = ch->next;
|
|
ch = ch->next;
|