-void sphook_lostserver(int hook, void *arg) {
- sp_addsplit(serverlist[(int)arg].name->content, getnettime());
+static void sphook_lostserver(int hook, void *arg) {
+ server *server = &serverlist[(long)arg];
+ sp_addsplit(server->name->content, getnettime(), getservertype(server));