fix /bip user info command

This commit is contained in:
Loïc Gomez 2022-01-06 19:51:11 +01:00 committed by Pierre-Louis Bonicoli
parent dc43d75d1f
commit 399a104d1e
Signed by: pilou
GPG Key ID: 06914C4A5EDAA6DD
1 changed files with 2 additions and 3 deletions

View File

@ -1997,9 +1997,8 @@ int adm_bip(bip_t *bip, struct link_client *ic, struct line *line, int privmsg)
return OK_FORGET;
}
if (admin && irc_line_elem_case_equals(line, privmsg + 2,
"user") == 0) {
if (irc_line_count(line) == privmsg + 4) {
if (admin && irc_line_elem_case_equals(line, privmsg + 2, "user")) {
if (irc_line_count(line) == (privmsg + 4)) {
adm_info_user(ic,
irc_line_elem(line, privmsg + 3));
} else {