Parses all packets, needs more work

This commit is contained in:
Ammar Askar committed 2012-04-14 20:29:04 +05:00
1 parent e7f1e5da54
commit b101b1c165
3 files changed
+308 -11

No files matched your search

+3 -3
View File
@@ -100,7 +100,7 @@ class Window(wx.Frame):
if ':' in StuffEnteredIntoBox:
StuffEnteredIntoBox = StuffEnteredIntoBox.split(":")
host = StuffEnteredIntoBox[0]
port = StuffEnteredIntoBox[1]
port = int(StuffEnteredIntoBox[1])
else:
host = StuffEnteredIntoBox
port = 25565
@@ -218,8 +218,8 @@ if __name__ == "__main__":
stuff = raw_input("Enter host and port if any: ")
if ':' in stuff:
StuffEnteredIntoBox = stuff.split(":")
host = stuff[0]
port = stuff[1]
host = StuffEnteredIntoBox[0]
port = int(StuffEnteredIntoBox[1])
else:
host = stuff
port = 25565