diff options
Diffstat (limited to 'src/operator-subscribe.cc')
-rw-r--r-- | src/operator-subscribe.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/operator-subscribe.cc b/src/operator-subscribe.cc index 3209986..3e73dfb 100644 --- a/src/operator-subscribe.cc +++ b/src/operator-subscribe.cc @@ -45,26 +45,26 @@ Operator::ProcessResult SubscribeOperator::process(Depot &depot, Request &comman return ProcessResult::OK; } -Parser::ParseResult SubscribeOperator::parse(Request &c_in) +Parser::ParseResult SubscribeOperator::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; } c_in.setMailbox(mailbox); - if ((res = expectCRLF()) != Parser::ParseResult::ACCEPT) { + if ((res = p.expectCRLF()) != Parser::ParseResult::ACCEPT) { session.setLastError("Expected CRLF"); return res; } |