diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-05-01 12:54:48 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-05-01 12:54:48 +0200 |
commit | 43cbb3c3f4d5f537dc38ab5349f30a7789ee8941 (patch) | |
tree | 9bfd4482a9ab8df6e65b55f79244b9afeb1b7d70 /FICS/command.c | |
parent | c518f3e13983236357a8af813882cede1d8ff165 (diff) |
Reformatted boot_out()
Diffstat (limited to 'FICS/command.c')
-rw-r--r-- | FICS/command.c | 19 |
1 files changed, 12 insertions, 7 deletions
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 |