Skip to content

Commit 58f848d

Browse files
committed
匿名アイテムでコテハンが表示されないように修正
1 parent be792a6 commit 58f848d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

MixchSitePlugin/Packet.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class Packet
1212
[JsonProperty("user_id")]
1313
public int UserId
1414
{
15-
get { return IsSystemMessage() ? 0 : _userId; }
15+
get { return IsSystemMessage() || Anonymous == 1 ? 0 : _userId; }
1616
set { _userId = value; }
1717
}
1818
private int _userId;
@@ -49,6 +49,9 @@ public string Name
4949
[JsonProperty("status")]
5050
public int Status { get; set; }
5151

52+
[JsonProperty("anonymous")]
53+
public int Anonymous { get; set; }
54+
5255
public bool IsSystemMessage()
5356
{
5457
switch ((MixchMessageType)Kind)

0 commit comments

Comments
 (0)