]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/extern.h
Fixed a logic error in the config script loop. Added two new variables VERSION and...
[irc/gameservirc.git] / gameserv / extern.h
index 5694201c9c04db7a34d8e8464558706728e3cba4..c330101120e5591e9499df7c1e8c21659a3708d3 100644 (file)
@@ -9,6 +9,25 @@
 #include <stdarg.h>
 #include "player.h"
 #include "list.h"
+#include "config.h"
+
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+#  include <sys/time.h>
+# else
+#  include <time.h>
+# endif
+#endif
+
+
+// The timestamp from load time to be compared against the current midnight time.
+E long timestamp;
+E void save_timestamp();
+E void load_timestamp();
+E long int midnight(long int offset = 8);
 
 // The socket
 E int sock;
@@ -27,6 +46,9 @@ E char *remoteserver;
 E char *remoteport;
 E char *remotepass;
 E char *playerdata;
+E char *adminpass;
+E char *VERSION;
+E char *PACKAGE;
 
 E List<aClient> clients;
 E List<aClient> players;
@@ -59,7 +81,11 @@ E bool is_fighting(char *u);
 E bool isnt_fighting(char *u);
 E bool player_fight(char *u);
 E bool master_fight(char *u);
+
+#ifndef HAVE_STRTOK
 E char *strtok(char *str, const char *delim);
+#endif
+
 E char *spaces(int len, char *seperator);
 E void display_monster(char *u);
 E void display_players(char *u);
@@ -75,11 +101,12 @@ E void delete_monsters();
 E void delete_masters();
 E Monster *getNewMonster(Monster *m);
 E void deleteMonster(Monster *m);
-E void refresh(aClient *ni);
+E void refresh(Player *p);
 E void refreshall();
 E void reset(aClient *ni);
 
 E void do_list(char *u);
+E void do_refresh(char *u);
 E void do_register(char *u);
 E void do_identify(char *u);
 E void do_play(char *u);