From 2568b786ff08823ced63074129b36b61ea903589 Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Fri, 20 Oct 2017 19:29:36 -0400 Subject: [PATCH] ITGChatProvider => IChatProvider Missed that one --- TGServerService/ChatCommands.cs | 4 ++-- TGServerService/ChatProviders/ChatProvider.cs | 4 ++-- TGServerService/ChatProviders/DiscordChatProvider.cs | 4 ++-- TGServerService/ChatProviders/IRCChatProvider.cs | 4 ++-- TGServerService/EventID.cs | 10 +++++----- TGServerService/ServerInstance/Chat.cs | 12 ++++++------ 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/TGServerService/ChatCommands.cs b/TGServerService/ChatCommands.cs index 8c8fe316c6..51a4014329 100644 --- a/TGServerService/ChatCommands.cs +++ b/TGServerService/ChatCommands.cs @@ -23,12 +23,12 @@ namespace TGServerService.ChatCommands /// public string Speaker { get; set; } /// - /// A reference to the that runs the that heard the + /// A reference to the that runs the that heard the /// public ServerInstance Server { get; set; } } /// - /// A command heard by a + /// A command heard by a /// abstract class ChatCommand : Command { diff --git a/TGServerService/ChatProviders/ChatProvider.cs b/TGServerService/ChatProviders/ChatProvider.cs index b1d8d9d19b..da6ff62999 100644 --- a/TGServerService/ChatProviders/ChatProvider.cs +++ b/TGServerService/ChatProviders/ChatProvider.cs @@ -13,11 +13,11 @@ namespace TGServerService.ChatProviders /// if is considered a chat admin, otherwise /// if is an admin chat channel, otherwise - delegate void OnChatMessage(ITGChatProvider ChatProvider, string speaker, string channel, string message, bool isAdmin, bool isAdminChannel); + delegate void OnChatMessage(IChatProvider ChatProvider, string speaker, string channel, string message, bool isAdmin, bool isAdminChannel); /// /// Interface for a chat provder service /// - interface ITGChatProvider : IDisposable + interface IChatProvider : IDisposable { /// /// Sets for the provider diff --git a/TGServerService/ChatProviders/DiscordChatProvider.cs b/TGServerService/ChatProviders/DiscordChatProvider.cs index f863c623a0..1fb5fa3c77 100644 --- a/TGServerService/ChatProviders/DiscordChatProvider.cs +++ b/TGServerService/ChatProviders/DiscordChatProvider.cs @@ -9,9 +9,9 @@ using TGServiceInterface; namespace TGServerService.ChatProviders { /// - /// for Discord: https://discordapp.com/ + /// for Discord: https://discordapp.com/ /// - sealed class DiscordChatProvider : ITGChatProvider + sealed class DiscordChatProvider : IChatProvider { /// public event OnChatMessage OnChatMessage; diff --git a/TGServerService/ChatProviders/IRCChatProvider.cs b/TGServerService/ChatProviders/IRCChatProvider.cs index d2eafceaa9..b5cb084687 100644 --- a/TGServerService/ChatProviders/IRCChatProvider.cs +++ b/TGServerService/ChatProviders/IRCChatProvider.cs @@ -7,9 +7,9 @@ using Meebey.SmartIrc4net; namespace TGServerService.ChatProviders { /// - /// for internet relay chat + /// for internet relay chat /// - sealed class IRCChatProvider : ITGChatProvider + sealed class IRCChatProvider : IChatProvider { /// /// Header used to mark that a channel is actually a query message diff --git a/TGServerService/EventID.cs b/TGServerService/EventID.cs index 954d405d9a..79bd18456b 100644 --- a/TGServerService/EventID.cs +++ b/TGServerService/EventID.cs @@ -12,11 +12,11 @@ namespace TGServerService /// ChatCommand = 100, /// - /// Warning: When a fails to + /// Warning: When a fails to /// ChatConnectFail = 200, /// - /// Error: When a fails to construct + /// Error: When a fails to construct /// ChatProviderStartFail = 300, /// @@ -110,11 +110,11 @@ namespace TGServerService /// DDWatchdogStarted = 2500, /// - /// Info: Successful completion of a operation + /// Info: Successful completion of a operation /// ChatSend = 2600, /// - /// Info: Successful completion of a operation + /// Info: Successful completion of a operation /// ChatBroadcast = 2700, /// @@ -123,7 +123,7 @@ namespace TGServerService [Obsolete("Not in use anymore", true)] ChatAdminBroadcast = 2800, /// - /// Error: When an error occurs during a operation + /// Error: When an error occurs during a operation /// ChatDisconnectFail = 2900, /// diff --git a/TGServerService/ServerInstance/Chat.cs b/TGServerService/ServerInstance/Chat.cs index 5bba7beb2f..4ee8eaeb1d 100644 --- a/TGServerService/ServerInstance/Chat.cs +++ b/TGServerService/ServerInstance/Chat.cs @@ -11,9 +11,9 @@ namespace TGServerService sealed partial class ServerInstance : ITGChat { /// - /// List of s for the + /// List of s for the /// - IList ChatProviders; + IList ChatProviders; /// /// Used for multithreading safety /// @@ -25,10 +25,10 @@ namespace TGServerService public void InitChat() { var infos = InitProviderInfos(); - ChatProviders = new List(infos.Count); + ChatProviders = new List(infos.Count); foreach (var info in infos) { - ITGChatProvider chatProvider; + IChatProvider chatProvider; try { switch (info.Provider) @@ -60,13 +60,13 @@ namespace TGServerService /// /// Implementation of that recieves messages from all channels of all connected /// - /// The that heard the + /// 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) + private void ChatProvider_OnChatMessage(IChatProvider ChatProvider, string speaker, string channel, string message, bool isAdmin, bool isAdminChannel) { var splits = message.Trim().Split(' ');