summaryrefslogtreecommitdiff
path: root/misc.py
diff options
context:
space:
mode:
authorNEMESIS13cz <seke94@seznam.cz>2015-08-12 20:34:20 +0200
committerNEMESIS13cz <seke94@seznam.cz>2015-08-12 20:34:20 +0200
commit66ab0c1468b91603efefe8128d0d600851c42895 (patch)
tree9a8bc235ab071075b6c3ec71f62c3e30387c8704 /misc.py
parent11cbd0848068e5b0081d29f80ed9486a4eb8766d (diff)
Fixed order of operations
Diffstat (limited to 'misc.py')
-rw-r--r--misc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc.py b/misc.py
index bbdf4ad..8020889 100644
--- a/misc.py
+++ b/misc.py
@@ -206,7 +206,7 @@ pythoners = [
description = "Runs python [code..] and returns the result",
helpNoargs = True)
def on_pyeval_command(sender, command, label, args):
- if uid(sender) not in pythoners and is_player(sender):
+ if is_player(sender) and uid(sender) not in pythoners:
return noperm(sender)
msg(sender, " ".join(args), False, "e")
thread.start_new_thread(eval_thread, (sender, " ".join(args)))