using System.Collections.Generic; using GuildWarsInterface; using GuildWarsInterface.GameServerLogic_; using GuildWarsInterface.Interaction; using Mod.Datastructures; using Mod.Declarations; using Mod.Networking; using Protocol.Messages.Chat; namespace Mod.Logic.GameServer { public class EnticeChatLogic : ChatLogic { protected override void OnChat(Chat.Channel channel, string message) { if (channel != Chat.Channel.InternalCommand) { if (channel == Chat.Channel.Command) { List arguments; string command = Chat.ParseCommand(message, out arguments); if (command == null) return; Client.Send(new ChatCommand(command, arguments)); } else if (channel == Chat.Channel.Guild) { Client.Send(new ChatCommand("shout", new List{message})); } else { Client.Send( new ChatMessage( Agents.GetUuid(Game.ControlledCharacter), message, (channel == Chat.Channel.Team ? Channel.Group : Channel.All).ToString() )); } } else { base.OnChat(channel, message); } } } }