tbl.contents[0][12] = "+X";
tbl.contents[0][13] = "MaxQ";
tbl.contents[0][14] = "OpMe";
- if(!count)
- {
+ if(!count) {
table_send(cmd->parent->bot, user->nick, 0, NULL, tbl);
reply("MSG_NONE");
free(tbl.contents[0]);
tbl.contents[ii][12] = off;
}
if(DEVNULL_HAS_PRIV(th, MAXSENDQ)) {
- tbl.contents[ii][13] = on;
+ char maxsenqbuf[MAXLEN];
+ sprintf(maxsenqbuf, "%lu", th->maxsendq);
+ tbl.contents[ii][13] = strdup(maxsenqbuf);
} else {
- tbl.contents[ii][13] = off;
+ tbl.contents[ii][13] = strdup(off);
}
if(DEVNULL_HAS_PRIV(th, OPME)) {
tbl.contents[ii][14] = on;
}
}
table_send(cmd->parent->bot, user->nick, 0, NULL, tbl);
- for(ii = 1; ii < tbl.length; ++ii)
- {
+ for(ii = 1; ii < tbl.length; ++ii) {
+ free(tbl.contents[ii][13]);
free(tbl.contents[ii]);
}
free(tbl.contents[0]);