X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/e3e5ba494aa6cacd920c5dbc2cbe61e56b6d6cb1..a76bcc6aff9bee1b90cb3acf107ffaf8ccff6715:/src/nickserv.c diff --git a/src/nickserv.c b/src/nickserv.c index 9137435..e25b5ca 100644 --- a/src/nickserv.c +++ b/src/nickserv.c @@ -27,9 +27,7 @@ #include "sendmail.h" #include "timeq.h" -#ifdef HAVE_REGEX_H #include -#endif #define NICKSERV_CONF_NAME "services/nickserv" @@ -3752,7 +3750,7 @@ nickserv_show_oper_accounts(struct userNode *user, struct svccmd *cmd) qsort(hil.list, hil.used, sizeof(hil.list[0]), nickserv_sort_accounts_by_access); tbl.length = hil.used + 1; tbl.width = 2; - tbl.flags = TABLE_NO_FREE; + tbl.flags = TABLE_NO_FREE | TABLE_REPEAT_ROWS | TABLE_REPEAT_HEADERS; tbl.contents = malloc(tbl.length * sizeof(tbl.contents[0])); tbl.contents[0] = ary = malloc(tbl.width * sizeof(ary[0])); ary[0] = "Account"; @@ -3764,7 +3762,7 @@ nickserv_show_oper_accounts(struct userNode *user, struct svccmd *cmd) tbl.contents[++ii] = ary; } table_send(cmd->parent->bot, user->nick, 0, NULL, tbl); - reply("MSG_MATCH_COUNT", hil.used); + /*reply("MSG_MATCH_COUNT", hil.used); */ for (ii = 0; ii < hil.used; ii++) free(tbl.contents[ii]); free(tbl.contents);