Skip to content

Commit

Permalink
Fixed hitting ESC when entering a ban reason causing the ban reason t…
Browse files Browse the repository at this point in the history
…o be "NULL"
  • Loading branch information
TomGrobbe committed Apr 16, 2018
1 parent 619467d commit 3e9282e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vMenu/CommonFunctions.cs
Expand Up @@ -382,7 +382,7 @@ public async void KickPlayer(Player player, bool askUserForReason, string provid
public async void BanPlayer(Player player, bool forever)
{
string banReason = await GetUserInput("Enter Ban Reason", "Banned by staff", 200);
if (banReason != "" && banReason != null && banReason.Length > 1)
if (banReason != "" && banReason != null && banReason.Length > 1 && banReason != "NULL")
{
if (forever)
{
Expand Down

0 comments on commit 3e9282e

Please sign in to comment.