mirror of
https://github.com/islehorse/HISP.git
synced 2025-04-23 21:25:52 +12:00
Add various chat related checks
This commit is contained in:
parent
2e4ba0b82d
commit
5fc313657d
8 changed files with 114 additions and 3 deletions
|
@ -124,6 +124,7 @@ namespace HISP.Game.Chat
|
|||
try{
|
||||
User bannedUser = GameServer.GetUserByName(args[0]);
|
||||
bannedUser.LoggedinClient.Kick(Messages.KickReasonBanned);
|
||||
|
||||
}
|
||||
catch(KeyNotFoundException){};
|
||||
|
||||
|
@ -357,7 +358,10 @@ namespace HISP.Game.Chat
|
|||
string moves = string.Join(" ", args).ToLower();
|
||||
string formattedmessage = Messages.FormatPlayerCommandCompleteMessage(message.Substring(1));
|
||||
|
||||
new Dance(user, moves);
|
||||
if (user.ActiveDance != null)
|
||||
user.ActiveDance.Dispose();
|
||||
|
||||
user.ActiveDance = new Dance(user, moves);
|
||||
|
||||
byte[] chatPacket = PacketBuilder.CreateChat(formattedmessage, PacketBuilder.CHAT_BOTTOM_LEFT);
|
||||
user.LoggedinClient.SendPacket(chatPacket);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue