Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add chanset bind #1524

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Next Next commit
Handle multiple args against bind
vanosg committed Feb 19, 2024
commit 077de5c4486b280f9dc836040eb7f74d5156fd17
5 changes: 3 additions & 2 deletions src/mod/channels.mod/cmdschan.c
Original file line number Diff line number Diff line change
@@ -1534,7 +1534,8 @@ static void cmd_chanset(struct userrec *u, int idx, char *par)
return;
}
if (check_tcl_chanset(chname, list[0]+1, value)) {
return;
list[0] = newsplit(&par);
continue;
}
if (tcl_channel_modify(0, chan, 1, list) == TCL_OK) {
strlcpy(value, list[0], 2);
@@ -1566,7 +1567,7 @@ static void cmd_chanset(struct userrec *u, int idx, char *par)
strcpy(parcpy, par);
irp = Tcl_CreateInterp();
if (check_tcl_chanset(chname, list[0], list[1])) {
return;
continue;
}
if (tcl_channel_modify(irp, chan, 2, list) == TCL_OK) {
int len = strlen(answers);