From 43cbb3c3f4d5f537dc38ab5349f30a7789ee8941 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Wed, 1 May 2024 12:54:48 +0200 Subject: Reformatted boot_out() --- FICS/command.c | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'FICS') diff --git a/FICS/command.c b/FICS/command.c index 29e8104..39d7aef 100644 --- a/FICS/command.c +++ b/FICS/command.c @@ -522,14 +522,19 @@ PRIVATE int process_login(int p, char *loginname) return 0; } -void boot_out(int p, int p1) +void +boot_out(int p, int p1) { - int fd; - pprintf(p, "\n **** %s is already logged in - kicking them out. ****\n", parray[p].name); - pprintf(p1, "**** %s has arrived - you can't both be logged in. ****\n", parray[p].name); - fd = parray[p1].socket; - process_disconnection(fd); - net_close_connection(fd); + int fd; + + pprintf(p, "\n **** %s is already logged in - kicking them out. ****\n", + parray[p].name); + pprintf(p1, "**** %s has arrived - you can't both be logged in. ****\n", + parray[p].name); + + fd = parray[p1].socket; + process_disconnection(fd); + net_close_connection(fd); } PUBLIC void -- cgit v1.2.3