equal
deleted
inserted
replaced
220 |
220 |
221 bool Command::matchesSubstr(const string &cmd) const |
221 bool Command::matchesSubstr(const string &cmd) const |
222 { |
222 { |
223 return name.substr(0, cmd.length()) == cmd; |
223 return name.substr(0, cmd.length()) == cmd; |
224 } |
224 } |
225 |
225 |
226 /****************************************************************************/ |
226 /****************************************************************************/ |
227 |
227 |
228 bool Command::matchesAbbrev(const string &abb) const |
228 bool Command::matchesAbbrev(const string &abb) const |
229 { |
229 { |
230 unsigned int i; |
230 unsigned int i; |
236 return false; |
236 return false; |
237 } |
237 } |
238 |
238 |
239 return true; |
239 return true; |
240 } |
240 } |
241 |
241 |
242 /*****************************************************************************/ |
242 /*****************************************************************************/ |
243 |
243 |
244 string Command::numericInfo() |
244 string Command::numericInfo() |
245 { |
245 { |
246 stringstream str; |
246 stringstream str; |
495 case 4: ret = "SAFEOP"; break; |
495 case 4: ret = "SAFEOP"; break; |
496 case 8: ret = "OP"; break; |
496 case 8: ret = "OP"; break; |
497 default: ret = "???"; |
497 default: ret = "???"; |
498 } |
498 } |
499 |
499 |
500 if (state & EC_SLAVE_STATE_ACK_ERR) { |
500 if (state & EC_SLAVE_STATE_ACK_ERR) { |
501 ret += "+ERROR"; |
501 ret += "+ERROR"; |
502 } |
502 } |
503 |
503 |
504 return ret; |
504 return ret; |
505 } |
505 } |