BwoinkSystem improvements (#11258)
* stuff * style * cleanup & fix * Bold
This commit is contained in:
@@ -23,24 +23,24 @@ namespace Content.Shared.Administration
|
||||
|
||||
protected void LogBwoink(BwoinkTextMessage message)
|
||||
{
|
||||
Logger.InfoS("c.s.go.es.bwoink", $"@{message.ChannelId}: {message.Text}");
|
||||
Logger.InfoS("c.s.go.es.bwoink", $"@{message.UserId}: {message.Text}");
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class BwoinkTextMessage : EntityEventArgs
|
||||
{
|
||||
public DateTime SentAt { get; }
|
||||
public NetUserId ChannelId { get; }
|
||||
public NetUserId UserId { get; }
|
||||
// This is ignored from the client.
|
||||
// It's checked by the client when receiving a message from the server for bwoink noises.
|
||||
// This could be a boolean "Incoming", but that would require making a second instance.
|
||||
public NetUserId TrueSender { get; }
|
||||
public string Text { get; }
|
||||
|
||||
public BwoinkTextMessage(NetUserId channelId, NetUserId trueSender, string text, DateTime? sentAt = default)
|
||||
public BwoinkTextMessage(NetUserId userId, NetUserId trueSender, string text, DateTime? sentAt = default)
|
||||
{
|
||||
SentAt = sentAt ?? DateTime.Now;
|
||||
ChannelId = channelId;
|
||||
UserId = userId;
|
||||
TrueSender = trueSender;
|
||||
Text = text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user