Skip to content

Commit

Permalink
Add support for non-static Public Ages
Browse files Browse the repository at this point in the history
  • Loading branch information
Deledrius committed Jan 21, 2012
1 parent d1e9fb2 commit f935653
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 10 additions & 1 deletion AuthServ/AuthVault.cpp
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,16 @@ std::list<AuthServer_AgeInfo> configure_static_ages()
if (haveAge)
configs.push_back(age);
age.clear();
age.m_ageId = DS::Uuid(line.strip().mid(1, 36).c_str());

DS::String header = line.strip();
header.replace("[","");
header.replace("]","");

if (header == "auto")
age.m_ageId = gen_uuid();
else
age.m_ageId = DS::Uuid(header.c_str());

haveAge = true;
continue;
}
Expand Down
5 changes: 5 additions & 0 deletions static_ages.ini
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ UserName = GuildPub-Writers
Instance = Kveer
Filename = Kveer
UserName = Kveer
[auto]
Instance = Watcher's Pub
Filename = GreatTreePub
UserName =

0 comments on commit f935653

Please sign in to comment.