1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 14:06:38 +02:00

anopesmtp: fix previous commit

This commit is contained in:
Adam
2018-06-12 10:46:55 -04:00
parent d25c8c169e
commit 94e10d52fb
+3 -1
View File
@@ -429,6 +429,8 @@ int smtp_send_email()
void smtp_disconnect()
{
char buf[1024];
if (!smtp_send("QUIT\r\n"))
{
alog("SMTP: error writing to socket");
@@ -439,7 +441,7 @@ void smtp_disconnect()
alog("SMTP: error reading buffer");
}
code = smtp_get_code(buf);
int code = smtp_get_code(buf);
if (code != 221)
{
alog("SMTP: error expected code 221 got %d",code);