vemacs/mc-status-viewer — pull request #1 by xxyy (2014-04-22 03:05:31+00:00)
Title: Add implied port

TL;DR: See code

**The Issue:**
Currently, if you don't specify a port after your address, the script fails with an exception. However, if you run servers on the default port, you would probably expect the script to behave like Vanilla Minecraft and imply the port to the default.
**PR Breakdown:**
This PR implies the port to 25565 (default Minecraft port) if no port is given. (aka. the ip string does not have a slash)
It does that by checking if the IP string contains a `/` - If it does, the string is split into port and ip parts. If it does not, the port is defaulted to the Minecraft default.
**PR testing materials:**
[Ideone syntax and logic test of the changed lines](http://ideone.com/17OzFc)
The above test tests the logic and syntax of the modified code.

Thanks!