Skip to content

Commit

Permalink
Remove superfluous condition
Browse files Browse the repository at this point in the history
  • Loading branch information
thommey committed Jun 29, 2024
1 parent 8b96c33 commit 8fe2b5e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -1908,8 +1908,7 @@ static int add_to_handle(struct userrec *u, int idx, char *handle, char *host, i
}
}
if ( !type && !glob_botmast(fr) && !chan_master(fr) && lookup_user_record(NULL, NULL, host)) {
dprintf(idx, "You cannot add %s matching another user!\n",
type ? "an account" : "a host");
dprintf(idx, "You cannot add a host matching another user!\n");
return 1;
}
if (type) {
Expand Down

0 comments on commit 8fe2b5e

Please sign in to comment.