// TODO: How should we handle the permissions if we extend this into an alt detector of sorts?
if!user.Perms.ViewIPs{
returncommon.NoPermissions(w,r,user)
}
// TODO: Reject IP Addresses with illegal characters
varip=html.EscapeString(r.FormValue("ip"))
uids,err:=common.IPSearch.Lookup(ip)
iferr!=nil{
returncommon.InternalError(err,w,r)
}
// TODO: What if a user is deleted via the Control Panel? We'll cross that bridge when we come to it, although we might lean towards blanking the account and removing the related data rather than purging it