Code: Select all
putserv "mode $chan +a"
putserv "mode $chan +a"
putserv "mode $chan +a"
all under the same proc
and you can replace putserv with putnow or putquick
Code: Select all
putserv "mode $chan +a"
putserv "mode $chan +a"
putserv "mode $chan +a"
Code: Select all
static int tcl_pushmode STDVAR
{
struct chanset_t *chan;
char plus, mode;
BADARGS(3, 4, " channel mode ?arg?");
chan = findchan_by_dname(argv[1]);
if (chan == NULL) {
Tcl_AppendResult(irp, "invalid channel: ", argv[1], NULL);
return TCL_ERROR;
}
plus = argv[2][0];
mode = argv[2][1];
if ((plus != '+') && (plus != '-')) {
mode = plus;
plus = '+';
}
if (argc == 4)
add_mode(chan, plus, mode, argv[3]);
else
add_mode(chan, plus, mode, "");
return TCL_OK;
}
Code: Select all
.tcl puthelp "MODE #channel +a"
I suspect that the problem isn't that. I think it is that pushmode can take another argument, with only some modes. An example would be +o .caesar wrote:I looked at eggdrop's source code on GitHub and I don't see anything limiting what modes the 'pusmode' can set: