1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 17:53:13 +02:00

Fix abort from STARTTLS

This commit is contained in:
Adam
2014-07-29 15:58:38 -04:00
parent ebdbc91f63
commit 0920c1e160
+1 -1
View File
@@ -118,7 +118,7 @@ DLLFUNC CMD_FUNC(m_starttls)
return 0;
}
dbuf_delete(&sptr->recvQ, 1000000); /* Clear up any remaining plaintext commands */
dbuf_delete(&sptr->recvQ, DBufLength(&sptr->recvQ)); /* Clear up any remaining plaintext commands */
sendto_one(sptr, rpl_str(RPL_STARTTLS), me.name, !BadPtr(sptr->name) ? sptr->name : "*");
send_queued(sptr);