diff options
Diffstat (limited to 'src/core/ms_read.c')
-rw-r--r-- | src/core/ms_read.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ms_read.c b/src/core/ms_read.c index 7573ddbb7..7329c0fde 100644 --- a/src/core/ms_read.c +++ b/src/core/ms_read.c @@ -56,7 +56,7 @@ class CommandMSRead : public Command } num = !numstr.empty() ? atoi(numstr.c_str()) : -1; if (numstr.empty() || (numstr != "LAST" && numstr != "NEW" && num <= 0)) - this->OnSyntaxError(u); + this->OnSyntaxError(u, numstr); else if (mi->memos.empty()) { if (!chan.empty()) @@ -111,7 +111,7 @@ class CommandMSRead : public Command return true; } - void OnSyntaxError(User *u) + void OnSyntaxError(User *u, const ci::string &subcommand) { syntax_error(s_MemoServ, u, "READ", MEMO_READ_SYNTAX); } |