Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ニコ生でユーザー名が表示されるよう修正 #220

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@
# default for csharp files.
# Note: This is only used by command line
###############################################################################
#*.cs diff=csharp
*.cs diff=csharp

###############################################################################
# Set the merge driver for project and solution files
6 changes: 0 additions & 6 deletions NicoSitePlugin2/Api.cs
Original file line number Diff line number Diff line change
@@ -16,12 +16,6 @@ public ApiGetCommunityLivesException()
}
}
class NotLoggedInException : Exception { }
class UserInfo
{
public string Nickname { get; set; }
public string UserIconUrl { get; set; }

}
static class Api
{
public static async Task<CommunityLiveInfo[]> GetCommunityLives(IDataSource server, CookieContainer cc, string communityId)
3 changes: 3 additions & 0 deletions NicoSitePlugin2/TestCommentProvider.cs
Original file line number Diff line number Diff line change
@@ -427,6 +427,9 @@ private async Task ProcessChatMessageAsync(Chat.IChatMessage message)
{
_chatProvider?.Disconnect();
}
if (chat.Name != null) {
user.Name = Common.MessagePartFactory.CreateMessageItems(chat.Name);
}
if (_siteOptions.IsAutoSetNickname)
{
var nick = SitePluginCommon.Utils.ExtractNickname(chat.Content);