1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-04 23:03:11 +02:00

+- Merged McSkaf's hostname patch, debug patch, s_misc patch

This commit is contained in:
stskeeps
2001-05-26 19:27:14 +00:00
parent 886549cf13
commit bacf06d3eb
6 changed files with 9 additions and 8 deletions
+2
View File
@@ -523,3 +523,5 @@ seen. gmtime warning still there
- Added McSkaf's rehash patch
- Made the Status Dialog update its values every 5 seconds
- Made slot arrangement be different.
- Merged McSkaf's hostname patch, debug patch, s_misc patch
+1 -1
View File
@@ -160,7 +160,7 @@ int deliver_it(aClient *cptr, char *str, int len)
# ifndef _WIN32
Debug((DEBUG_ERROR, "write error (%s) to %s", sys_errlist[errno], cptr->name));
# else
Debug((DEBUG_ERROR, "write error (%s) to %s", sys_errlist[WSAGetLastError()], cptr->name));
Debug((DEBUG_ERROR, "write error (%s) to %s", strerror[WSAGetLastError()], cptr->name));
# endif
}
+1 -1
View File
@@ -2492,7 +2492,7 @@ int connect_server(aconf, by, hp)
#endif
hp = gethost_byname(s, &lin);
if (!hp)
return 0;
return -2;
bcopy(hp->h_addr, (char *)&aconf->ipnum,
sizeof(struct IN_ADDR));
}
+3
View File
@@ -183,10 +183,12 @@ void debug(int level, char *form, ...)
(void)ircsprintf(debugbuf, form, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10);
#else
(void)ircvsprintf(debugbuf, form, vl);
#if 0
# ifdef _WIN32
strcat(debugbuf,"\r\n");
# endif
#endif
#endif
#if 0
if (local[2])
@@ -202,6 +204,7 @@ void debug(int level, char *form, ...)
# ifndef _WIN32GUI
Cio_Puts(hCio, debugbuf, strlen(debugbuf));
# else
strcat(debugbuf, "\r\n");
OutputDebugString(debugbuf);
# endif
#endif
-4
View File
@@ -808,11 +808,7 @@ void tstats(cptr, name)
sp = &tmp;
bcopy((char *)ircstp, (char *)sp, sizeof(*sp));
#ifndef _WIN32
for (i = 0; i < MAXCONNECTIONS; i++)
#else
for (i = 0; i <= LastSlot; i++)
#endif
{
if (!(acptr = local[i]))
continue;
+2 -2
View File
@@ -3325,8 +3325,8 @@ void load_tunefile(void)
me.name, parv[0], aconf->servername);
break;
case -2:
sendto_one(sptr, ":%s NOTICE %s :*** Host %s is unknown.",
me.name, parv[0], aconf->servername);
sendto_one(sptr, ":%s NOTICE %s :*** Hostname %s is unknown for server %s.",
me.name, parv[0], aconf->hostname, aconf->servername);
break;
default:
sendto_one(sptr,