Files
2026-08-27 11:23:13 -06:00

34 lines
1.1 KiB
C#

// Decompiled with JetBrains decompiler
// Type: Server.Handlers.HandleChat
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
using Raton.Forms.ClientForms.Monitor;
using Server.Connection;
using Stuff;
using System;
using System.Windows.Forms;
#nullable disable
namespace Server.Handlers;
internal class HandleChat
{
public HandleChat(SillyClient SillyClient, Unpack unpack)
{
ratonChat formChat = (ratonChat) Application.OpenForms["Chat | Client ID: " + unpack.GetAsString("UID")];
if (formChat == null)
return;
if (formChat.SillyClient == null)
formChat.SillyClient = SillyClient;
formChat.Invoke((Delegate) (() =>
{
ListViewItem listViewItem = new ListViewItem(unpack.GetAsString("Message"));
listViewItem.ImageIndex = 0;
formChat.aeroListView1.Items.Add(listViewItem);
listViewItem.EnsureVisible();
}));
}
}