Download | Plain Text | Line Numbers


--- eggdrop1.8.orig/src/dcc.c	2012-09-19 17:44:58.000000000 +0200
+++ eggdrop1.8/src/dcc.c	2012-09-20 01:19:38.000000000 +0200
@@ -1316,6 +1316,13 @@
     return;
   }
 
+  /* Skip ident lookup if disabled */
+  if (identtimeout <= 0) {
+    dcc[i].u.ident_sock = dcc[idx].sock;
+    dcc_telnet_got_ident(i, userhost);
+    return;
+  }
+
   changeover_dcc(i, &DCC_IDENTWAIT, 0);
   dcc[i].timeval = now;
   dcc[i].u.ident_sock = dcc[idx].sock;
--- eggdrop1.8.orig/eggdrop.conf	2012-09-20 01:33:56.000000000 +0200
+++ eggdrop1.8/eggdrop.conf	2012-09-20 01:35:49.000000000 +0200
@@ -303,6 +303,7 @@
 
 # This setting defines the time in seconds the bot should wait for ident reply
 # before the lookup fails. The default ident on timeout is 'telnet'.
+# A value of 0 disables the ident lookup entirely.
 set ident-timeout 5
 
 # Define here whether or not a +o user still needs the +p flag to dcc the bot.