1
0
forked from bip/bip

add -q option to blreset.

This commit is contained in:
Arnaud Cornet 2007-11-18 14:57:00 +01:00
parent 51f5a91664
commit b33e832d2d

View File

@ -1731,7 +1731,7 @@ void adm_bip_help(struct link_client *ic, int admin)
adm_reply(ic, "/BIP LIST networks|connections"); adm_reply(ic, "/BIP LIST networks|connections");
} }
adm_reply(ic, "/BIP JUMP # jump to next server (in same network)"); adm_reply(ic, "/BIP JUMP # jump to next server (in same network)");
adm_reply(ic, "/BIP BLRESET # reset backlog (this connection only)"); adm_reply(ic, "/BIP BLRESET [-q] # reset backlog (this connection only). Add -q flag and the operation is quiet.");
#ifdef HAVE_LIBSSL #ifdef HAVE_LIBSSL
adm_reply(ic, "/BIP TRUST # trust this server certificate"); adm_reply(ic, "/BIP TRUST # trust this server certificate");
#endif #endif
@ -1823,7 +1823,12 @@ int adm_bip(struct link_client *ic, struct line *line, unsigned int privmsg)
} }
adm_reply(ic, "Jumping to next server"); adm_reply(ic, "Jumping to next server");
} else if (strcasecmp(line->elemv[privmsg + 1], "BLRESET") == 0) { } else if (strcasecmp(line->elemv[privmsg + 1], "BLRESET") == 0) {
if (line->elemc == privmsg + 3 &&
strccmp(line->elemv[privmsg + 2], "-q") == 0) {
log_reinit_all(LINK(ic)->log);
} else {
adm_blreset(ic); adm_blreset(ic);
}
} else if (strcasecmp(line->elemv[privmsg + 1], "HELP") == 0) { } else if (strcasecmp(line->elemv[privmsg + 1], "HELP") == 0) {
adm_bip_help(ic, admin); adm_bip_help(ic, admin);
} else if (strcasecmp(line->elemv[privmsg + 1], "FOLLOW_NICK") == 0) { } else if (strcasecmp(line->elemv[privmsg + 1], "FOLLOW_NICK") == 0) {