]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/extern.h
Fix the compiler errors introduced by the P10 bugfixes.
[irc/gameservirc.git] / gameserv / extern.h
index b1dcc44a87645cda21d39d5b19a6af5e99f8b73b..477dc85a5af2f80b781410df6f0032ffacbf978e 100644 (file)
@@ -4,13 +4,14 @@
 #define E extern
 
 #define LEVELS 12      // Levels in the game
-#define REALLEVELS 7    // Levels to load from monsters.dat
+#define REALLEVELS 8    // Levels to load from monsters.dat
 #define MONSTERS 12    // Monsters per level
 
 #include <stdarg.h>
 #include "player.h"
 #include "list.h"
 #include "config.h"
+#include "options.h"
 
 #if TIME_WITH_SYS_TIME
 # include <sys/time.h>
@@ -42,11 +43,17 @@ E char *c_Forest;
 E char *c_ForestTopic;
 E char *gshost;
 E char *gsident;
+
+#if defined(P10)
+E char *gsnum;
+#endif
+
 E char *servername;
 E char *remoteserver;
 E char *remoteport;
 E char *remotepass;
 E char *playerdata;
+E char *logfile;
 E char *monsterdata;
 E char *adminpass;
 E char *VERSION;
@@ -65,8 +72,12 @@ E aClient *find(char *nick);
 E aClient *find(const char *nick);
 E aClient *findbynick(char *nick);
 E aClient *findbynick(const char *nick);
+E aClient *findbyrealnick(char *realnick);
 E aClient *findplayer(const char *name);
 E aClient *findIRCplayer(const char *nick);
+#ifdef P10
+E aClient *findbyrealnick(char *realnick);
+#endif
 
 /** Sock writing functions **/
 E void notice(const char *source, const char *dest, const char *fmt, ...);
@@ -145,4 +156,7 @@ E void showinventory(aClient *from, aClient *to = NULL);
 E int save_gs_dbase();
 E int load_gs_dbase();
 
+// Log File Stuff
+E void log(const char *fmt, ...);
+
 #endif