Don't log queries with -bip, fix blreset help
This commit is contained in:
parent
b3d7dbfb02
commit
a5814b17a0
|
@ -1965,9 +1965,10 @@ void adm_bip_help(struct link_client *ic, int admin, const char *subhelp)
|
||||||
}
|
}
|
||||||
bip_notify(ic, "/BIP JUMP # jump to next server (in same "
|
bip_notify(ic, "/BIP JUMP # jump to next server (in same "
|
||||||
"network)");
|
"network)");
|
||||||
bip_notify(ic, "/BIP BLRESET # reset backlog (this "
|
bip_notify(ic, "/BIP BLRESET [channel|query]# reset backlog "
|
||||||
"connection only). Add -q flag and the "
|
"(this connection only). Add -q flag and the "
|
||||||
"operation is quiet.");
|
"operation is quiet. You can specify a channel "
|
||||||
|
"or a nick to reset only this channel/query.");
|
||||||
#ifdef HAVE_LIBSSL
|
#ifdef HAVE_LIBSSL
|
||||||
bip_notify(ic, "/BIP TRUST # trust this server certificate");
|
bip_notify(ic, "/BIP TRUST # trust this server certificate");
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -863,10 +863,11 @@ static int irc_cli_privmsg(bip_t *bip, struct link_client *ic,
|
||||||
if (!irc_line_includes(line, 2))
|
if (!irc_line_includes(line, 2))
|
||||||
return OK_FORGET;
|
return OK_FORGET;
|
||||||
|
|
||||||
log_cli_privmsg(LINK(ic)->log, LINK(ic)->l_server->nick,
|
|
||||||
irc_line_elem(line, 1), irc_line_elem(line, 2));
|
|
||||||
if (irc_line_elem_equals(line, 1, "-bip"))
|
if (irc_line_elem_equals(line, 1, "-bip"))
|
||||||
return adm_bip(bip, ic, line, 1);
|
return adm_bip(bip, ic, line, 1);
|
||||||
|
else
|
||||||
|
log_cli_privmsg(LINK(ic)->log, LINK(ic)->l_server->nick,
|
||||||
|
irc_line_elem(line, 1), irc_line_elem(line, 2));
|
||||||
|
|
||||||
if (LINK(ic)->user->blreset_on_talk)
|
if (LINK(ic)->user->blreset_on_talk)
|
||||||
log_reset_store(LINK(ic)->log, irc_line_elem(line, 1));
|
log_reset_store(LINK(ic)->log, irc_line_elem(line, 1));
|
||||||
|
|
Loading…
Reference in New Issue