From 70f135207c36463878ab3c6e5d397f59c4ab0faa Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Dec 2005 18:28:23 +0000 Subject: Code tidying git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2440 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index a58cf6ad0..470ba0b09 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -65,13 +65,11 @@ using namespace std; extern SocketEngine* SE; extern ServerConfig* Config; +extern InspIRCd* ServerInstance; extern int MODCOUNT; extern std::vector modules; extern std::vector factory; -extern int WHOWAS_STALE; -extern int WHOWAS_MAX; -extern time_t startup_time; extern time_t TIME; const long duration_m = 60; @@ -84,7 +82,6 @@ extern user_hash clientlist; extern chan_hash chanlist; extern whowas_hash whowas; extern command_table cmdlist; -extern address_cache IP; extern std::vector all_opers; @@ -1475,7 +1472,7 @@ void handle_stats(char **parameters, int pcnt, userrec *user) { time_t current_time = 0; current_time = TIME; - time_t server_uptime = current_time - startup_time; + time_t server_uptime = current_time - ServerInstance->startup_time; struct tm* stime; stime = gmtime(&server_uptime); /* i dont know who the hell would have an ircd running for over a year nonstop, but -- cgit v1.2.3