[eggheads-patches] PATCH: link.patch

Per/dw dw at lixom.nu
Sat Oct 9 12:47:34 CST 1999


before:
[Snuttan(dcc)] [18:54] Linking to blahbot at :3333 ...
[Snuttan(dcc)] [18:54] Attempt to kill un-allocated socket 7 !!
[Snuttan(dcc)] [18:54] Attempt to kill un-allocated socket 7 !!
[Snuttan(dcc)] [18:54] Attempt to kill un-allocated socket 7 !!
[Snuttan(dcc)] *** [Snuttan] Couldn't link to blahbot.
[Snuttan(dcc)] [18:54] Failed link to blahbot.
[Snuttan(dcc)] [18:54] Attempt to kill un-allocated socket 7 !!
after:
[Snuttan(dcc)] [19:21] #dw# link blahbot
[Snuttan(dcc)] Invalid telnet address:port stored for 'blahbot'.
[Snuttan(dcc)] Use: .chaddr blahbot <address>:<port#>[/<relay-port#>]

dw
-- 
"Cyberspace scared me so bad I downloaded in my pants."
   -- Buddy Jellison
-------------- next part --------------
Index: doc/UPDATES1.3
===================================================================
RCS file: /usr/local/cvsroot/eggdrop1.3/doc/UPDATES1.3,v
retrieving revision 1.172
diff -u -r1.172 UPDATES1.3
--- doc/UPDATES1.3	1999/10/07 23:12:02	1.172
+++ doc/UPDATES1.3	1999/10/09 17:37:35
@@ -4,6 +4,8 @@
 
 1.3.29
 Foundby   Fixedby   What....
+drnet     dw        .link didnt check for nonexisting addy/ip enough
+                    creating Attempt to kill un-allocated socket n !! msges
           dw        kicks weren't being logged
           rtc       added assert debugging feature
 	  Fabian    main() wasn't removing unknown sockets correctly
Index: language/core.english.lang
===================================================================
RCS file: /usr/local/cvsroot/eggdrop1.3/language/core.english.lang,v
retrieving revision 1.11
diff -u -r1.11 core.english.lang
--- language/core.english.lang	1999/10/02 22:31:15	1.11
+++ language/core.english.lang	1999/10/09 17:37:35
@@ -382,7 +382,7 @@
 0xb45,is not a known bot.
 0xb46,Link to myself?  Oh boy, Freud would have a field day.
 0xb47,That bot is already connected up.
-0xb48,No telnet port stored for
+0xb48,Invalid telnet address:port stored for
 0xb49,Linking to
 0xb4a,Can't find user for relay!
 0xb4b,Could not link to
Index: src/botnet.c
===================================================================
RCS file: /usr/local/cvsroot/eggdrop1.3/src/botnet.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 botnet.c
--- src/botnet.c	1999/06/23 19:51:26	1.1.1.1
+++ src/botnet.c	1999/10/09 17:37:37
@@ -899,7 +899,7 @@
       }
     /* address to connect to is in 'info' */
     bi = (struct bot_addr *) get_user(&USERENTRY_BOTADDR, u);
-    if (!bi) {
+    if (!bi || !strlen(bi->address) || !bi->telnet_port) {
       if (idx >= 0) {
 	dprintf(idx, "%s '%s'.\n", BOT_NOTELNETADDY, nick);
 	dprintf(idx, "%s .chaddr %s %s\n",


More information about the Patches mailing list