Advertisement
ijontichy

<stdin>

Jul 7th, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. diff -r 00065f166c52 src/sv_main.cpp
  2. --- a/src/sv_main.cpp Sun Aug 19 22:11:18 2012 +0200
  3. +++ b/src/sv_main.cpp Sun Jul 07 12:14:08 2013 -0400
  4. @@ -1072,28 +1072,27 @@
  5. // [BB] This is to make the lines readily identifiable, necessary
  6. // for MiX-MaN's IRC server control tool for example.
  7. bool sv_logfiletimestampOldValue = sv_logfiletimestamp;
  8. - if( sv_markchatlines )
  9. - {
  10. - Printf( "CHAT " );
  11. - sv_logfiletimestamp = false;
  12. - }
  13. + Printf( "CHAT %% " );
  14. + sv_logfiletimestamp = false;
  15. +
  16. // Print this message in the server's local window.
  17. if ( strnicmp( "/me", pszString, 3 ) == 0 )
  18. {
  19. pszString += 3;
  20. if ( ulPlayer == MAXPLAYERS )
  21. - Printf( "* <server>%s\n", pszString );
  22. + Printf( "* <server> %%%s\n", pszString );
  23. else
  24. - Printf( "* %s%s\n", players[ulPlayer].userinfo.netname, pszString );
  25. + Printf( "* %s %%%s\n", players[ulPlayer].userinfo.netname, pszString );
  26. }
  27. else
  28. {
  29. if ( ulPlayer == MAXPLAYERS )
  30. - Printf( "<server>: %s\n", pszString );
  31. + Printf( "<server> %% %s\n", pszString );
  32. else
  33. - Printf( "%s: %s\n", players[ulPlayer].userinfo.netname, pszString );
  34. - }
  35. - if( sv_markchatlines && sv_logfiletimestampOldValue )
  36. + Printf( "%s %% %s\n", players[ulPlayer].userinfo.netname, pszString );
  37. + }
  38. +
  39. + if( sv_logfiletimestampOldValue )
  40. sv_logfiletimestamp = true;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement