Mirror IrcClient.Channels to IrcClient.User.Channels

This commit is contained in:
Alexandre Oliveira 2017-08-25 22:21:43 -03:00
parent 30345b81fd
commit a8a77372ef
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,6 @@ namespace ChatSharp
User = user;
ServerAddress = serverAddress;
Encoding = Encoding.UTF8;
Channels = new ChannelCollection(this);
Settings = new ClientSettings();
Handlers = new Dictionary<string, MessageHandler>();
MessageHandlers.RegisterDefaultHandlers(this);
@ -155,6 +154,7 @@ namespace ChatSharp
WriteQueue = new ConcurrentQueue<string>();
ServerInfo = new ServerInfo();
PrivmsgPrefix = "";
Channels = User.Channels = new ChannelCollection(this);
Users = new UserPool();
Users.Add(User); // Add self to user pool
Capabilities = new CapabilityPool();