From 8dbe9c1b60c909dfbb661e52acfe8b4f3afb59c2 Mon Sep 17 00:00:00 2001 From: Gabriel Huber Date: Tue, 10 Jun 2014 13:46:34 +0200 Subject: [PATCH] Require botcontrol permission for resethistory command --- plugins/history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/history.py b/plugins/history.py index c703bcf7..98b8f121 100644 --- a/plugins/history.py +++ b/plugins/history.py @@ -46,7 +46,7 @@ def chat_tracker(paraml, input=None, db=None, conn=None): track_history(input, message_time, conn) -@hook.command(autohelp=False) +@hook.command(autohelp=False, permissions=["botcontrol"]) def resethistory(inp, input=None, conn=None): """resethistory - Resets chat history for the current channel""" try: