made it so newlines arn't parsed and added avaliable permissions to groups.txt

This commit is contained in:
Maverick Motherfucker 2011-06-04 09:45:23 -07:00
parent c895369ff6
commit cfd3cbf5a3
2 changed files with 11 additions and 1 deletions

View file

@ -336,6 +336,10 @@ namespace TShockAPI
continue;
}
string[] args = lines[i].Split(' ');
if (args.Length < 2)
{
continue;
}
string name = args[0];
string parent = args[1];
Group group = null;
@ -422,6 +426,10 @@ namespace TShockAPI
for (int i = 0; i < lines.Length; i++)
{
string[] args = lines[i].Split(' ');
if (args.Length < 2)
{
continue;
}
if (args[0].Equals(ip))
{
return GetGroup(args[1]);