]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/aClient.h
Fixed some p10, bugs, and gameserv is now running as a true daemon with pid outputtin...
[irc/gameservirc.git] / gameserv / aClient.h
index 79b92904694ccf6ea544f146748fe821cf41a3cb..dbc41c9f1f71b3d84d5e3edb96aba3421f6ac527 100644 (file)
@@ -2,6 +2,7 @@
 #define ACLIENT_H
 
 #include <string.h>
+#include "options.h"
 #include "player.h"
 #include <iostream>
 using std::ostream;
@@ -14,6 +15,11 @@ class aClient {
 
     public:
         aClient(char *);               // Constructor takes a char for the nick
+
+       #ifdef P10
+           aClient(char *, char *);    // Constructor takes a char for the nick and realnick
+       #endif
+
        aClient(const aClient &);       // Copy constructor
         aClient();                     // Default constructor
         ~aClient();                    // Destructor
@@ -24,6 +30,12 @@ class aClient {
 
         void setNick(char *n) { strcpy(nick, n);};     // Sets the client's nick
         char *getNick() { return nick; };              // Returns the client's nick
+
+       #ifdef P10
+           void setRealNick(char *rn) { strcpy(realnick, rn);}; // Sets the client's realnick
+           char *getRealNick() { return realnick; };   // Returns the client's real nick
+       #endif
+
        Player *stats;                                  // Pointer to the client's player struct
 
        long int getFlags() { return flags; };          // Returns the Client's current flags
@@ -34,6 +46,9 @@ class aClient {
        long int remFlag(long int);     // Removes a flag from the client's current flags
 
     private:
+       #ifdef P10
+           char realnick[32];  // Client's text nickname. Not the numeric
+       #endif
         char nick[32];         // Client's current nickname. Numeric if P10 is used
        long int flags;         // Client's current flags.
 };