readability

This commit is contained in:
jomo
2014-07-27 19:43:06 +02:00
parent aad63e5416
commit 54beea6ee5

View File

@@ -37,7 +37,8 @@ def broadcast(perm, text):
"""
text = colorify(text)
for recipient in list(server.getOnlinePlayers()) + [server.getConsoleSender()]:
(not perm or recipient.hasPermission(perm)) and msg(recipient, text)
if not perm or recipient.hasPermission(perm):
msg(recipient, text)
def colorify(text):