summaryrefslogtreecommitdiff
path: root/helpers.py
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2014-07-27 19:43:06 +0200
committerjomo <github@jomo.tv>2014-07-27 19:43:06 +0200
commit9231d23bcb87a492f2cbdb8c6342fec72c54beee (patch)
tree312b5e083cf7f33f273ede8aee7332083531a8de /helpers.py
parentb1a3a92e49b353dfa42b52b448cdbc3b27bb33f8 (diff)
readability
Diffstat (limited to 'helpers.py')
-rw-r--r--helpers.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/helpers.py b/helpers.py
index 0bd7b18..d1303c2 100644
--- a/helpers.py
+++ b/helpers.py
@@ -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):