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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user