diff options
-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 |