1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-08 16:53:12 +02:00

Get rid of Debug(()) function calls. I never use it anyway.

This commit is contained in:
Bram Matthys
2021-07-12 18:54:05 +02:00
parent a57bdba220
commit 05aeba9ba9
21 changed files with 2 additions and 105 deletions
-1
View File
@@ -43,7 +43,6 @@ MOD_UNLOAD()
static void ident_lookup_failed(Client *client)
{
Debug((DEBUG_NOTICE, "ident_lookup_failed() for %p", client));
ircstats.is_abad++;
if (client->local->authfd != -1)
{
-2
View File
@@ -1335,8 +1335,6 @@ int AllowClient(Client *client, char *username)
static char uhost[HOSTLEN + USERLEN + 3];
static char fullname[HOSTLEN + 1];
Debug((DEBUG_DNS, "ch_cl: check access for %s[%s]", client->name, client->local->sockhost));
if (!check_init(client, sockhost, sizeof(sockhost)))
return 0;
-4
View File
@@ -1406,11 +1406,7 @@ int server_sync(Client *cptr, ConfigItem_link *aconf)
if (!cptr->serv->conf)
cptr->serv->conf = aconf; /* Only set serv->conf to aconf if not set already! Bug #0003913 */
if (incoming)
{
cptr->serv->conf->refcount++;
Debug((DEBUG_ERROR, "reference count for %s (%s) is now %d",
cptr->name, cptr->serv->conf->servername, cptr->serv->conf->refcount));
}
cptr->serv->conf->class->clients++;
cptr->local->class = cptr->serv->conf->class;
RunHook(HOOKTYPE_SERVER_CONNECT, cptr);
-4
View File
@@ -463,7 +463,6 @@ getnick:
continue;
if (nick[0] == '\0')
continue;
Debug((DEBUG_DEBUG, "Got nick: %s", nick));
if (!(modeflags & CHFL_BAN) && !(modeflags & CHFL_EXCEPT) && !(modeflags & CHFL_INVEX))
{
Client *acptr;
@@ -634,7 +633,6 @@ getnick:
}
/* Send out any possible remainder.. */
Debug((DEBUG_DEBUG, "Sending '%li %s :%s' to ", ts, parabuf, parv[parc - 1]));
sendto_server(client, 0, PROTO_SJSBY, recv_mtags, "%s", uid_buf);
sendto_server(client, PROTO_SJSBY, 0, recv_mtags, "%s", uid_sjsby_buf);
@@ -843,12 +841,10 @@ getnick:
case EXSJ_THEYWON:
parax = cm_getparameter(channel, flag);
Debug((DEBUG_DEBUG, "sjoin: they won: '%s'", parax));
Addit(Channelmode_Table[i].flag, parax);
break;
case EXSJ_SAME:
Debug((DEBUG_DEBUG, "sjoin: equal"));
break;
case EXSJ_MERGE:
+2 -3
View File
@@ -97,14 +97,13 @@ CMD_FUNC(cmd_starttls)
send_queued(client);
SetStartTLSHandshake(client);
Debug((DEBUG_DEBUG, "Starting SSL handshake (due to STARTTLS) for %s", client->local->sockhost));
if ((client->local->ssl = SSL_new(ctx)) == NULL)
goto fail;
SetTLS(client);
SSL_set_fd(client->local->ssl, client->local->fd);
SSL_set_nonblocking(client->local->ssl);
if (!ircd_SSL_accept(client, client->local->fd)) {
Debug((DEBUG_DEBUG, "Failed SSL accept handshake in instance 1: %s", client->local->sockhost));
if (!ircd_SSL_accept(client, client->local->fd))
{
SSL_set_shutdown(client->local->ssl, SSL_RECEIVED_SHUTDOWN);
SSL_smart_shutdown(client->local->ssl);
SSL_free(client->local->ssl);