Skip to content

Commit

Permalink
Ahelpfix (#106)
Browse files Browse the repository at this point in the history
* fix ahelp system for logging

* fix ahelp system v2
  • Loading branch information
Sh1ntra authored Oct 31, 2024
1 parent 3009ff9 commit 111f5be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Content.Server/Administration/ServerApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -408,15 +408,15 @@ private async Task ActionAhelpSend(IStatusHandlerContext context, Actor actor)
await context.RespondErrorAsync(HttpStatusCode.BadRequest);
return;
}
var _bwoinkSystem = _entitySystemManager.GetEntitySystem<BwoinkSystem>();
//var _bwoinkSystem = _entitySystemManager.GetEntitySystem<BwoinkSystem>();
var playerUserId = new NetUserId(body.UserId);
var senderUserId = new NetUserId(actor.Guid);
var message = new SharedBwoinkSystem.BwoinkTextMessage(playerUserId,senderUserId, body.Text);
await RunOnMainThread(async () =>
{
if (_playerManager.TryGetSessionById(playerUserId, out var session))
{
_bwoinkSystem.DiscordAhelpSendMessage(message, new EntitySessionEventArgs(session));
//_bwoinkSystem.DiscordAhelpSendMessage(message, new EntitySessionEventArgs(session));
await RespondOk(context);
}
});
Expand Down
4 changes: 2 additions & 2 deletions Content.Server/Administration/Systems/BwoinkSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ protected override void OnBwoinkTextMessage(BwoinkTextMessage message, EntitySes
}
}

public void DiscordAhelpSendMessage(BwoinkTextMessage message, EntitySessionEventArgs eventArgs)
/*public void DiscordAhelpSendMessage(BwoinkTextMessage message, EntitySessionEventArgs eventArgs)
{
var senderSession = eventArgs.SenderSession;
Expand Down Expand Up @@ -537,7 +537,7 @@ public void DiscordAhelpSendMessage(BwoinkTextMessage message, EntitySessionEven
var systemText = Loc.GetString("bwoink-system-starmute-message-no-other-users");
var starMuteMsg = new BwoinkTextMessage(message.UserId, SystemUserId, systemText);
RaiseNetworkEvent(starMuteMsg, senderSession.Channel);
}
}*/

private IList<INetChannel> GetNonAfkAdmins()
{
Expand Down

0 comments on commit 111f5be

Please sign in to comment.