Skip to content

Instantly share code, notes, and snippets.

@judeibe
Created February 24, 2010 22:29
Show Gist options
  • Select an option

  • Save judeibe/313954 to your computer and use it in GitHub Desktop.

Select an option

Save judeibe/313954 to your computer and use it in GitHub Desktop.
if (reason.Length < 2 || reason[0] == "VER")
0
System.Windows.Forms.MessageBox.Show("Error: client/server version incompability!\r\nServer: " + msgBuffer.ReadString() + "\r\nClient: " + Defines.INFINIMINER_VERSION);
0
else
0
- System.Windows.Forms.MessageBox.Show("Error: you are banned from this server!");
0
+ System.Windows.Forms.MessageBox.Show(reason[0]);
{
0
Player newPlayer = new Player(msgSender, null);
0
newPlayer.Handle = Defines.Sanitize(msgBuffer.ReadString()).Trim();
0
- if (newPlayer.Handle.Length == 0)
0
+ if (newPlayer.Handle.Length == 0 || newPlayer.Handle == "Player")
0
{
0
- newPlayer.Handle = "Player";
0
+ msgSender.Disapprove("Change your name from Player;");
0
}
0
0
string clientVersion = msgBuffer.ReadString();
0
@@ -1533,7 +1589,7 @@ namespace Infiniminer
0
}
0
else if (banList.Contains(newPlayer.IP))
0
{
0
- msgSender.Disapprove("BAN;");
0
+ msgSender.Disapprove("You are banned from this server;");
0
}/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment