Skip to content

Commit 57d5067

Browse files
ぬるぽ修正、リリースには程遠い
1 parent 11ca862 commit 57d5067

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

NicoSitePlugin2/TestCommentProvider.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,11 @@ public async Task ProcessChunkedMessage(ChunkedMessage message)
869869
//{
870870
// userId = chat.RawUserId.ToString();
871871
//}
872-
var name = chat.HashedUserId.Substring(2);//a:
872+
var name = "";
873+
if (chat.HashedUserId != null && chat.HashedUserId != "")
874+
{
875+
name = chat.HashedUserId.Substring(2);//a:
876+
}
873877
var anonymity = true;
874878
var no = chat.No;
875879
if (chat.Name != null&&chat.Name != "")

0 commit comments

Comments
 (0)