Skip to content

Commit

Permalink
Allow spaces in names with !sethost
Browse files Browse the repository at this point in the history
  • Loading branch information
matte-ek committed May 13, 2023
1 parent a0a4ab8 commit 9a83d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BanchoMultiplayerBot/Behaviour/AutoHostRotateBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ private void OnAdminMessage(IPrivateIrcMessage message)
try
{
var name = message.Content.Split("!sethost ")[1];
var player = _lobby.MultiplayerLobby.Players.FirstOrDefault(x => x.Name.ToIrcNameFormat().ToLower() == name.ToLower());
var player = _lobby.MultiplayerLobby.Players.FirstOrDefault(x => x.Name.ToIrcNameFormat().ToLower() == name.ToLower() || x.Name.ToLower() == name.ToLower());

if (player is null)
{
Expand Down

0 comments on commit 9a83d12

Please sign in to comment.