diff --git a/TGServerService/ServerInstance/Chat.cs b/TGServerService/ServerInstance/Chat.cs
index 89e1693d9e..5bba7beb2f 100644
--- a/TGServerService/ServerInstance/Chat.cs
+++ b/TGServerService/ServerInstance/Chat.cs
@@ -10,10 +10,18 @@ namespace TGServerService
{
sealed partial class ServerInstance : ITGChat
{
-
+ ///
+ /// List of s for the
+ ///
IList ChatProviders;
+ ///
+ /// Used for multithreading safety
+ ///
object ChatLock = new object();
+ ///
+ /// Set up the for the
+ ///
public void InitChat()
{
var infos = InitProviderInfos();
@@ -49,6 +57,15 @@ namespace TGServerService
}
}
+ ///
+ /// Implementation of that recieves messages from all channels of all connected
+ ///
+ /// The that heard the
+ /// The user who wrote the
+ /// The channel the is from
+ /// The recieved message
+ /// if is considered a chat admin, otherwise
+ /// if is an admin channel, otherwise
private void ChatProvider_OnChatMessage(ITGChatProvider ChatProvider, string speaker, string channel, string message, bool isAdmin, bool isAdminChannel)
{
var splits = message.Trim().Split(' ');
@@ -75,7 +92,9 @@ namespace TGServerService
new RootChatCommand(ServerChatCommands).DoRun(asList);
}
- //cleanup and save
+ ///
+ /// Properly shuts down all
+ ///
void DisposeChat()
{
var infosList = new List>();
@@ -94,6 +113,7 @@ namespace TGServerService
Config.ChatProviderEntropy = entrp;
}
+ ///
public IList ProviderInfos()
{
var infosList = new List();
@@ -102,7 +122,10 @@ namespace TGServerService
return infosList;
}
- ///
+ ///
+ /// Returns a list of s loaded from the config or the defaults if none are set
+ ///
+ /// A list of s loaded from the config or the defaults if none are set
IList InitProviderInfos()
{
lock (ChatLock)
@@ -174,7 +197,7 @@ namespace TGServerService
}
///
- /// Reconnect servers that are enabled and disconnected
+ /// Reconnect servers that are enabled and disconnected. Checked every time DreamDaemon reboots
///
void ChatConnectivityCheck()
{