]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/aClient.cpp
Fixed a bug with RUN, where if a user was not logged in (playing), the
[irc/gameservirc.git] / gameserv / aClient.cpp
index ceb149aa908ebec5c691369853b8da844a4b6317..2ca249ad93fa399f590f23076eee627819b12780 100644 (file)
@@ -10,9 +10,26 @@ aClient::aClient(char *n)
        log("aClient created: %s", (n[0] == '\0' ? "NULL" : n));
     #endif
     strcpy(nick, n);
+
+    #ifdef P10
+       strcpy(realnick, n);
+    #endif
+
     stats = NULL;
     flags = 0;
 }
+#ifdef P10
+aClient::aClient(char *n, char *rn)
+{
+    #ifdef DEBUGMODE
+       log("aClient created: %s", (n[0] == '\0' ? "NULL" : n));
+    #endif
+    strcpy(nick, n);
+    strcpy(realnick, rn);
+    stats = NULL;
+    flags = 0;
+}
+#endif
 
 aClient::aClient(const aClient &right)
 {
@@ -28,7 +45,6 @@ aClient::aClient(const aClient &right)
 aClient::aClient()
 {
     aClient("");
-    flags = 0;
 }
 
 aClient::~aClient()
@@ -62,6 +78,9 @@ void aClient::setData(const aClient *right)
     if (right != this)
     {
        strcpy(nick, right->nick);
+       #ifdef P10
+           strcpy(realnick, right->realnick);
+       #endif
        if (right->stats)
        {
            if (!stats)