summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 18:28:23 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 18:28:23 +0000
commit70f135207c36463878ab3c6e5d397f59c4ab0faa (patch)
tree80f1d0c6b72e2ec948ccb0318b7e017b6d50593d /src/commands.cpp
parentc76bb1695fce08aa75ad6ba706cb203e28b75652 (diff)
Code tidying
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2440 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp7
1 files changed, 2 insertions, 5 deletions
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<Module*> modules;
extern std::vector<ircd_module*> 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<userrec*> 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