[eggheads-patches] PATCH: telnet-port.diff

Tothwolf tothwolf at concentric.net
Sat Oct 30 16:51:18 CST 1999


telnet-port.diff:
  Adds port number to [dcclist] for telent listen sockets (guppy's code)

-Toth
-------------- next part --------------
diff -urNPX ../exclude ../eggdrop1.3/src/dcc.c ./src/dcc.c
--- ../eggdrop1.3/src/dcc.c	Tue Oct 26 03:08:40 1999
+++ ./src/dcc.c	Sat Oct 30 16:28:35 1999
@@ -1164,7 +1164,7 @@
 
 static void display_telnet(int idx, char *buf)
 {
-  strcpy(buf, "lstn");
+  sprintf(buf, "lstn %d", dcc[idx].port);
 }
 
 struct dcc_table DCC_TELNET =


More information about the Patches mailing list