diff --git a/src/bip.c b/src/bip.c index 9420ec0..41b290b 100644 --- a/src/bip.c +++ b/src/bip.c @@ -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 " "network)"); - bip_notify(ic, "/BIP BLRESET # reset backlog (this " - "connection only). Add -q flag and the " - "operation is quiet."); + bip_notify(ic, "/BIP BLRESET [channel|query]# reset backlog " + "(this connection only). Add -q flag and the " + "operation is quiet. You can specify a channel " + "or a nick to reset only this channel/query."); #ifdef HAVE_LIBSSL bip_notify(ic, "/BIP TRUST # trust this server certificate"); #endif diff --git a/src/irc.c b/src/irc.c index 335f9ed..0577e42 100644 --- a/src/irc.c +++ b/src/irc.c @@ -863,10 +863,11 @@ static int irc_cli_privmsg(bip_t *bip, struct link_client *ic, if (!irc_line_includes(line, 2)) 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")) 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) log_reset_store(LINK(ic)->log, irc_line_elem(line, 1));