ID:140332
 
client
New()
..()
var/list/iplog = IP_ListRead()
iplog+="[src]([src.key]/[src.address]) logged on at [time2text(world.realtime)]"
IP_ListWrite(iplog)

Edit: Code added
Problem description:
I have an IP log to help admins find a player's IP...But it doesnt add the IP? Nothing with IP's works, cant IP ban, cant view IP, etc. Is this an issue with Byond/DM?


This is an issue with your code.
Added code, and it records the "[src]blahblah" but it leaves out just their IP. Is src.address not the correct way to do it?
Have you tried this on anyone besides the host? The host's address is null.
BananasInPajamas wrote:
client
> New()
> ..()
> var/list/iplog = IP_ListRead()
> iplog+="[src]([src.key]/[src.address]) logged on at [time2text(world.realtime)]"
> IP_ListWrite(iplog)

Edit: Code added
Problem description:
I have an IP log to help admins find a player's IP...But it doesnt add the IP? Nothing with IP's works, cant IP ban, cant view IP, etc. Is this an issue with Byond/DM?



By the way, aren't you missing a . ?
IP_List.Write(iplog)
In response to Maximus_Alex2003
Maximus_Alex2003 wrote:
BananasInPajamas wrote:
client
> > New()
> > ..()
> > var/list/iplog = IP_ListRead()
> > iplog+="[src]([src.key]/[src.address]) logged on at [time2text(world.realtime)]"
> > IP_ListWrite(iplog)

Edit: Code added
Problem description:
I have an IP log to help admins find a player's IP...But it doesnt add the IP? Nothing with IP's works, cant IP ban, cant view IP, etc. Is this an issue with Byond/DM?



By the way, aren't you missing a . ?
IP_List.Write(iplog)

IP_ListWrite is a proc that does more than write the file for me. Sorry if that confused anyone lol...

Edit: I didn't know the host didn't have an address...I feel so dumb XD Thanks for the help!