projects
/
umurmur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Must enable UDP when receiving ping packets too.
[umurmur.git]
/
src
/
log.c
diff --git
a/src/log.c
b/src/log.c
index 8990c03cd448adab31cc5c7edfba21d1564dc81d..94f86a822503dda3bd18ed0aaab3661ee1b65d46 100644
(file)
--- a/
src/log.c
+++ b/
src/log.c
@@
-115,7
+115,7
@@
void Log_info_client(client_t *client, const char *logstring, ...)
va_end(argp);
offset += snprintf(&buf[offset], STRSIZE - offset, " - [%d] %s@%s:%d",
client->sessionId,
va_end(argp);
offset += snprintf(&buf[offset], STRSIZE - offset, " - [%d] %s@%s:%d",
client->sessionId,
- client->
playerName == NULL ? "" : client->playerN
ame,
+ client->
username == NULL ? "" : client->usern
ame,
inet_ntoa(client->remote_tcp.sin_addr),
ntohs(client->remote_tcp.sin_port));
strcat(buf, "\n");
inet_ntoa(client->remote_tcp.sin_addr),
ntohs(client->remote_tcp.sin_port));
strcat(buf, "\n");