airdcpp / airdcpp-windows

http://www.airdcpp.net
GNU General Public License v3.0
80 stars 19 forks source link

Add IP address and country code as variables #96

Open Sopor opened 11 months ago

Sopor commented 11 months ago

Prerequisites

Is your proposal related to a problem?

No

Describe the solution you would like

It is possible to modify your log files what they should include.

As default private message has this format: [%Y-%m-%d %H:%M] %[message]

The option: Show user IP and country in chat when available is not the right way to add IP address and country code.

It should be added by variables instead when these variables are already available.

Available variables for the country code: 
  %[2code]
  %[3code]
  %[continent]
  %[engname]
  %[name]
  %[officialname]

The only one that need to be created is %[ipv4address] / %[ipv6address].

Then you can create your own log and chat window layout by these variables.

As it works now, the IP address and country code will always be added last and it is not possible to add to log files.

Describe alternatives you have considered

No response

Screenshot(s)

No response

Additional information

No response