From c200db711a8c9cf6ee0a6827eb8dcc82925d58de Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 31 Dec 2023 20:32:06 +0100 Subject: Reformatted player_init() --- FICS/playerdb.c | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) (limited to 'FICS') diff --git a/FICS/playerdb.c b/FICS/playerdb.c index 1dacd29..5917a74 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -75,24 +75,27 @@ PUBLIC void player_array_init() parray[i].status = PLAYER_EMPTY; } -PUBLIC void player_init(int startConsole) -{ - int p; - - if (startConsole) { - net_addConnection(0, 0); - p = player_new(); - parray[p].login = xstrdup("console"); - parray[p].name = xstrdup("console"); - parray[p].passwd = xstrdup("*"); - parray[p].fullName = xstrdup("The Operator"); - parray[p].emailAddress = NULL; - parray[p].prompt = xstrdup("fics%"); - parray[p].adminLevel = ADMIN_GOD; - parray[p].socket = 0; - parray[p].busy[0] = '\0'; - pprintf_prompt(p, "\nLogged in on console.\n"); - } +PUBLIC void +player_init(int startConsole) +{ + int p; + + if (startConsole) { + net_addConnection(0, 0); + p = player_new(); + + parray[p].login = xstrdup("console"); + parray[p].name = xstrdup("console"); + parray[p].passwd = xstrdup("*"); + parray[p].fullName = xstrdup("The Operator"); + parray[p].emailAddress = NULL; + parray[p].prompt = xstrdup("fics%"); + parray[p].adminLevel = ADMIN_GOD; + parray[p].socket = 0; + parray[p].busy[0] = '\0'; + + pprintf_prompt(p, "\nLogged in on console.\n"); + } } PUBLIC int -- cgit v1.2.3