summaryrefslogtreecommitdiff
path: root/misc.py
diff options
context:
space:
mode:
Diffstat (limited to 'misc.py')
-rw-r--r--misc.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/misc.py b/misc.py
index e5727bc..c6da200 100644
--- a/misc.py
+++ b/misc.py
@@ -263,7 +263,10 @@ def on_modules_command(sender, command, label, args):
amax = 0,
helpSubcmd = True)
def warn_command(sender, command, label, args):
- broadcast(None, " &b= &2&lLag incoming! &r-%s" % sender.getDisplayName())
+ if sender.hasPermission("utils.warn"):
+ broadcast(None, " &b= &2&lLag incoming! &r-%s" % sender.getDisplayName())
+ else:
+ noperm(sender)
@simplecommand("warnp",
@@ -272,7 +275,10 @@ def warn_command(sender, command, label, args):
amax = 0,
helpSubcmd = True)
def warnp_command(sender, command, label, args):
- broadcast(None, " &b= &2&lPossible lag incoming! &r-%s" % sender.getDisplayName())
+ if sender.hasPermission("utils.warnp"):
+ broadcast(None, " &b= &2&lPossible lag incoming! &r-%s" % sender.getDisplayName())
+ else:
+ noperm(sender)