Make tags actually persist through restarts

This commit is contained in:
Deukhoofd 2018-11-05 15:40:17 +01:00
parent dd177fa012
commit 2e77b6d563
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@ namespace DeukBot4.MessageHandlers.CommandHandler
public class ServerTags public class ServerTags
{ {
private readonly Dictionary<string, string> Tags = new Dictionary<string, string>(); private readonly Dictionary<string, string> Tags = new Dictionary<string, string>();
private ulong ServerId { get; set; } private ulong ServerId { get; }
public ServerTags(ulong serverId) public ServerTags(ulong serverId)
{ {
@ -24,6 +24,7 @@ namespace DeukBot4.MessageHandlers.CommandHandler
} }
public ServerTags(ulong serverId, Dictionary<string, string> tags) public ServerTags(ulong serverId, Dictionary<string, string> tags)
:this(serverId)
{ {
Tags = tags; Tags = tags;
} }