{
if(!self.stored_netname)
self.stored_netname = strzone(uid2name(self.crypto_idfp));
- if(self.stored_netname != self.stored_netname)
+ if(self.stored_netname != self.netname)
{
db_put(ServerProgsDB, strcat("uid2name", self.crypto_idfp), self.netname);
strunzone(self.stored_netname);
}
string uid2name(string myuid) {
- // TODO TODO TODO!
- // store uid in separate uid2name db IF CLIENT ALLOWS THIS
- // - make it global for all mods
- // perhaps show 10 first digits here if missing name?
string s;
s = db_get(ServerProgsDB, strcat("uid2name", myuid));