]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/tcpclient.cpp
Added everything necessary to save overtop of the old dragon when someone beats the...
[irc/gameservirc.git] / gameserv / tcpclient.cpp
index bac95918616a50b1c62047d9d7fa55dfb077a710..dccf1c9dd870de905597717546844521c082fdea 100644 (file)
@@ -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);
 
@@ -118,6 +117,12 @@ int main(int argc, char *argv[])
        goto end;
   }
 
+  if (!load_dragon())
+  {
+       log("Error loading dragon");
+       goto end;
+  }
+
   if (load_levels() == false)
   {
        log("Error loading levels");
@@ -215,6 +220,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 <dave@ltd.com> for pointing out the possible
     buffer overflow resulting from the linefeed added below. */
@@ -579,6 +590,7 @@ int main(int argc, char *argv[])
   end:
 
   save_gs_dbase();
+  save_dragon();
   saveNews(newsdata, todaysnews);
 
   delete_monsters();