sharp-chat/SharpChat.Protocol.SockChat/Packets/WhoIsResponsePacket.cs

13 lines
476 B
C#
Raw Normal View History

2022-08-30 15:05:29 +00:00
using SharpChat.Users;
using System.Net;
namespace SharpChat.Protocol.SockChat.Packets {
public class WhoIsResponsePacket : BotResponsePacket {
public WhoIsResponsePacket(IUser sender, string userName, IPAddress ipAddress)
: base(sender, BotArguments.USER_IP_ADDRESS, false, userName, ipAddress) { }
public WhoIsResponsePacket(IUser sender, IUser user, IPAddress ipAddress)
: this(sender, user.UserName, ipAddress) { }
}
}