X-Git-Url: https://jfr.im/git/irc/gameservirc.git/blobdiff_plain/5c449fdefc6456ed1f53fb4488755826ac1d5198..169c286a23bcef717a3034d0ab5693b92b6e68c9:/gameserv/tcpclient.cpp diff --git a/gameserv/tcpclient.cpp b/gameserv/tcpclient.cpp index 4e939d5..fa73761 100644 --- a/gameserv/tcpclient.cpp +++ b/gameserv/tcpclient.cpp @@ -35,7 +35,7 @@ using std::cerr; using std::endl; char *PACKAGE = "GameServ"; -char *VERSION = "1.2.4 +devel"; +char *VERSION = "1.2.5 +devel"; int sock; long lastrefresh; @@ -102,7 +102,6 @@ int main(int argc, char *argv[]) perror("Could not turn into a daemon"); exit(3); } - load_gs_dbase(); loadNews(newsdata, todaysnews); @@ -136,18 +135,6 @@ int main(int argc, char *argv[]) currentserver = strtok(NULL, " "); } - boss.name = "Red Dragon"; - boss.weapon = "Breath of Unholy Fire"; - boss.strength = 2500; - boss.gold = 2000000000; - boss.exp = 2000000000; - boss.maxhp = 6667; - boss.hp = 6667; - boss.death = "You finally snuff out the deadly murderous "\ - "dragon's dark flames. You have freed the land of its terror "\ - "filled reign from above!"; - - // This loop will retry the connection 3 times for (int retry = 0; retry < 3 && !shuttingdown; retry++) { @@ -227,6 +214,12 @@ int main(int argc, char *argv[]) raw(":%S TOPIC %s :%s", c_Forest, c_ForestTopic); #endif + #ifndef P10 + if (isUseNickServ()) + { + raw(":%S PRIVMSG %s :IDENTIFY %s", nsname, nspass); + } + #endif sock_gets(sock,buffer,sizeof(buffer)-1); /* -1 added thanks to David Duchene for pointing out the possible buffer overflow resulting from the linefeed added below. */