;
else if (reply[0] == '+' && str_to_uint(reply+1, &count) == 0)
kick->kick_count += count;
- else
- i_error("Invalid KICK-USER reply: %s", reply);
+ else {
+ e_error(kick->conn->conn.event,
+ "Invalid KICK-USER reply: %s", reply);
+ }
if (--kick->cmd_refcount == 0)
kick_user_finished(kick);
}
if (kill(result.pid, SIGTERM) == 0)
kick->kick_count++;
else if (errno != ESRCH) {
- i_error("kill(%ld) failed: %m",
+ e_error(conn->conn.event,
+ "kill(%ld) failed: %m",
(long)result.pid);
}
break;
if (kill(result.pid, SIGTERM) == 0)
kick->kick_count++;
else if (errno != ESRCH) {
- i_error("kill(%ld) failed: %m",
+ e_error(conn->conn.event,
+ "kill(%ld) failed: %m",
(long)result.pid);
}
}
the handshake. */
return 1;
}
- i_error("Anvil client not compatible with this server "
+ e_error(_conn->event,
+ "Anvil client not compatible with this server "
"(mixed old and new binaries?) %s", line);
return -1;
}
}
if (args[0] == NULL) {
- i_error("Anvil client sent empty line");
+ e_error(_conn->event, "Anvil client sent empty line");
return -1;
}
if (anvil_connection_request(conn, args, &error) < 0) {
- i_error("Anvil client input error: %s: %s", error, line);
+ e_error(_conn->event, "Anvil client input error: %s: %s",
+ error, line);
return -1;
}
return 1;