hirc

IRC client
Log | Files | Refs

commit 0687c0ab5e8c12f6a31d454f9280b36828f715d9
parent 3b43f94dd2cbfd80284ad2ec85379293051aee6c
Author: hhvn <dev@hhvn.uk>
Date:   Sat, 26 Mar 2022 18:37:19 +0000

Use serv_get

Diffstat:
Msrc/commands.c | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/commands.c b/src/commands.c @@ -935,11 +935,7 @@ command_select) { return; } - for (sp = servers; sp; sp = sp->next) - if (strcmp(sp->name, tserver) == 0) - break; - - if (!sp) { + if (!(sp = serv_get(&servers, tserver))) { ui_error("could not find server '%s'", tserver); return; }