diff options
Diffstat (limited to 'src/operator-unsubscribe.cc')
-rw-r--r-- | src/operator-unsubscribe.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/operator-unsubscribe.cc b/src/operator-unsubscribe.cc index cafa10a..d2ef0c0 100644 --- a/src/operator-unsubscribe.cc +++ b/src/operator-unsubscribe.cc @@ -51,25 +51,25 @@ Operator::ProcessResult UnsubscribeOperator::process(Depot &depot, Request &comm return ProcessResult::OK; } -Parser::ParseResult UnsubscribeOperator::parse(Request &c_in) +Parser::ParseResult UnsubscribeOperator::parse(Request &c_in, Parser &p) { Session &session = Session::getInstance(); if (c_in.getUidMode()) return Parser::ParseResult::REJECT; Parser::ParseResult res; - if ((res = expectSPACE()) != Parser::ParseResult::ACCEPT) { + if ((res = p.expectSPACE()) != Parser::ParseResult::ACCEPT) { session.setLastError("Expected SPACE"); return res; } string mailbox; - if ((res = expectMailbox(mailbox)) != Parser::ParseResult::ACCEPT) { + if ((res = p.expectMailbox(mailbox)) != Parser::ParseResult::ACCEPT) { session.setLastError("Expected mailbox"); return res; } - if ((res = expectCRLF()) != Parser::ParseResult::ACCEPT) { + if ((res = p.expectCRLF()) != Parser::ParseResult::ACCEPT) { session.setLastError("Expected CRLF"); return res; } |