aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-04-17 04:02:38 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-04-17 04:02:38 +0200
commit11bba6b94ec0e000b15c170139a1f47744b168c4 (patch)
tree52e3d3f7d49353b838399809d45260bd784509dd /FICS
parenta7acaca2a21ba90173079c9ecd5e01a4a22b04ae (diff)
Reformatted process_new_connection()
Diffstat (limited to 'FICS')
-rw-r--r--FICS/command.c31
1 files changed, 18 insertions, 13 deletions
diff --git a/FICS/command.c b/FICS/command.c
index fb10cdd..1063e92 100644
--- a/FICS/command.c
+++ b/FICS/command.c
@@ -910,20 +910,25 @@ PUBLIC int process_input(int fd, char *com_string)
return retval;
}
-PUBLIC int process_new_connection(int fd, unsigned int fromHost)
+PUBLIC int
+process_new_connection(int fd, unsigned int fromHost)
{
- int p = player_new();
-
- parray[p].status = PLAYER_LOGIN;
- parray[p].socket = fd;
- parray[p].thisHost = fromHost;
- parray[p].logon_time = time(0);
- psend_raw_file(p, mess_dir, MESS_WELCOME);
- pprintf(p, "Head admin : %s Complaints to : %s\n", hadmin_handle, hadmin_email);
- pprintf(p, "Server location: %s Server version : %s\n", fics_hostname, VERS_NUM);
- psend_raw_file(p, mess_dir, MESS_LOGIN);
- pprintf(p, "login: ");
- return 0;
+ int p = player_new();
+
+ parray[p].status = PLAYER_LOGIN;
+ parray[p].socket = fd;
+ parray[p].thisHost = fromHost;
+ parray[p].logon_time = time(0);
+
+ psend_raw_file(p, mess_dir, MESS_WELCOME);
+ pprintf(p, "Head admin : %s Complaints to : %s\n",
+ hadmin_handle,
+ hadmin_email);
+ pprintf(p, "Server location: %s Server version : %s\n", fics_hostname,
+ VERS_NUM);
+ psend_raw_file(p, mess_dir, MESS_LOGIN);
+ pprintf(p, "login: ");
+ return 0;
}
PUBLIC int