Browse Source

* Cleanups

svn: 1059
Bryan Drewery 22 years ago
parent
commit
6fd41bd2e9
2 changed files with 1 additions and 7 deletions
  1. 1 3
      src/mod/server.mod/server.c
  2. 0 4
      src/mod/server.mod/servmsg.c

+ 1 - 3
src/mod/server.mod/server.c

@@ -45,7 +45,6 @@ char botuserhost[121] = "";	/* bot's user@host (refreshed whenever the
 static int keepnick;		/* keep trying to regain my intended
 				   nickname? */
 static int nick_juped = 0;	/* True if origbotname is juped(RPL437) (dw) */
-static int check_stoned;	/* Check for a stoned server? */
 static int serverror_quit;	/* Disconnect from server if ERROR
 				   messages received? */
 int quiet_reject;	/* Quietly reject dcc chat or sends from
@@ -976,7 +975,7 @@ static void server_secondly()
 
 static void server_5minutely()
 {
-  if (check_stoned && server_online) {
+  if (server_online) {
     if (waiting_for_awake) {
       /* Uh oh!  Never got pong from last time, five minutes ago!
        * Server is probably stoned.
@@ -1083,7 +1082,6 @@ void server_init()
   flud_ctcp_time = 60;
   botuserhost[0] = 0;
   keepnick = 1;
-  check_stoned = 1;
   serverror_quit = 1;
   quiet_reject = 1;
   waiting_for_awake = 0;

+ 0 - 4
src/mod/server.mod/servmsg.c

@@ -995,19 +995,15 @@ static void kill_server(int idx, void *x)
   struct chanset_t *chan = NULL;
 
   disconnect_server(idx, NO_LOST);	/* eof_server will lostdcc() it. */
-
   for (chan = chanset; chan; chan = chan->next)
      clear_channel(chan, 1);
-
   /* A new server connection will be automatically initiated in
      about 2 seconds. */
 }
 
 static void timeout_server(int idx)
 {
-
   putlog(LOG_SERV, "*", "Timeout: connect to %s", dcc[idx].host);
-
   disconnect_server(idx, DO_LOST);
 }