[ServerUp] Don't accept old syntax anymore

master
sfan5 2013-02-10 18:15:03 +01:00
parent 595c191add
commit 90dfcf47cb
1 changed files with 1 additions and 2 deletions

View File

@ -13,8 +13,7 @@ def serverup(phenny, input):
if not '.' in arg:
return phenny.reply("Invalid Address")
if ':' in arg:
phenny.reply("Note: Syntax changed please use 'example.org 1337' instead of 'example.org:1337'")
arg = arg.split(':')[0] + ' ' + arg.split(':')[1]
return phenny.reply("Note: Syntax changed please use 'example.org 1337' instead of 'example.org:1337'")
if ' ' in arg:
address = arg.split(' ')[0]
port = arg.split(' ')[1]