diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-31 20:32:06 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-31 20:32:06 +0100 |
commit | c200db711a8c9cf6ee0a6827eb8dcc82925d58de (patch) | |
tree | f5262888aab51bebbbadb159eeb8378debb84ad5 /FICS | |
parent | 071e78a57918dfaeb124742170a1586fcc8d613e (diff) |
Reformatted player_init()
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/playerdb.c | 39 |
1 files changed, 21 insertions, 18 deletions
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 |