]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/tcpclient.cpp
Fixed a logic error in the config script loop. Added two new variables VERSION and...
[irc/gameservirc.git] / gameserv / tcpclient.cpp
index 7a3bd5a48a29e92f96972b707dfecaf2520e6d30..5edcef47b9bfd50cf1d3b1d10a12d1a0333e4b84 100644 (file)
 #include <iomanip.h>
 #include <stdlib.h>
 
+char *VERSION;
+char *PACKAGE;
+
+VERSION = "1.1.2";
+PACKAGE = "GameServ";
+
 int sock;
 long timestamp;
 
@@ -66,8 +72,8 @@ int main(int argc, char *argv[])
        raw("PROTOCTL NICKv2 VHP");
        raw("PASS :%s", remotepass);
        raw("SERVER %s 1 :%s", servername, servername);
-       raw("NICK %S 1 %d %S %s %s %d +owghraAxNt %s :GameServ", time(NULL), gshost, 
-               servername, time(NULL), gshost);
+       raw("NICK %S 1 %d %S %s %s %d +owghraAxNt %s :%s v%s", time(NULL), gshost, 
+               servername, time(NULL), gshost, PACKAGE, VERSION);
        raw(":%S JOIN %s", c_Forest);
        raw(":%S MODE %s +mtn", c_Forest);
 #elif defined(BAHAMUT)