aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl/lib/Mail/Rspamd/Client.pm2
-rw-r--r--src/controller.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/perl/lib/Mail/Rspamd/Client.pm b/perl/lib/Mail/Rspamd/Client.pm
index ee07e446b..94e26a093 100644
--- a/perl/lib/Mail/Rspamd/Client.pm
+++ b/perl/lib/Mail/Rspamd/Client.pm
@@ -965,7 +965,7 @@ sub _do_control_command {
if ($self->_auth ($remote)) {
my $len = length ($msg);
- syswrite $remote, "learn $self->{statfile} $len -w $self->{weight}" . $EOL;
+ syswrite $remote, "learn $self->{statfile} $len -m $self->{weight}" . $EOL;
syswrite $remote, $msg . $EOL;
unless ($self->_get_io_readiness($remote, 0)) {
$res{error} = "Timeout while reading data from socket";
diff --git a/src/controller.c b/src/controller.c
index 50b2b5f34..3bafeaa05 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -533,7 +533,7 @@ process_command (struct controller_command *cmd, char **cmd_args, struct control
case 'm':
arg = *(cmd_args + 1);
if (!arg || *arg == '\0') {
- r = snprintf (out_buf, sizeof (out_buf), "recipient is not defined" CRLF);
+ r = snprintf (out_buf, sizeof (out_buf), "multiplier is not defined" CRLF);
rspamd_dispatcher_write (session->dispatcher, out_buf, r, FALSE, FALSE);
return;
}