X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fmessagehandler.c;h=50b648a29fbecf31a8d9e22d3b8d276945f16ada;hb=0585137946bb302982364d681bf1c398834585e4;hp=1e7a5566ab30e817fe99bbda820ea9b402332634;hpb=8cf410eace9c2a69ae9855b26110fe07d8deb99a;p=umurmur.git diff --git a/src/messagehandler.c b/src/messagehandler.c index 1e7a556..50b648a 100644 --- a/src/messagehandler.c +++ b/src/messagehandler.c @@ -187,7 +187,7 @@ void Mh_handle_message(client_t *client, message_t *msg) if (strlen(getStrConf(ADMIN_PASSPHRASE)) > 0 && Client_token_match(client, getStrConf(ADMIN_PASSPHRASE))) { client->isAdmin = true; - Log_info("User is admin"); + Log_info_client(client, "User provided admin password"); } /* Setup UDP encryption */ @@ -837,7 +837,8 @@ void Mh_handle_message(client_t *client, message_t *msg) if (msg->payload.userRemove->has_ban && msg->payload.userRemove->ban) { Ban_UserBan(target, msg->payload.userRemove->reason); } else { - Log_info("User kicked"); + Log_info_client(target, "User kicked. Reason: '%s'", + strlen(msg->payload.userRemove->reason) == 0 ? "N/A" : msg->payload.userRemove->reason); } /* Re-use message */ Msg_inc_ref(msg);