From f9c4ef6b28acb875f69a6dfa8eb0b22be1e55d50 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Mon, 8 Aug 2016 18:48:01 -0400 Subject: [PATCH] don't allow users not in the channel to run commands --- src/decorators.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/decorators.py b/src/decorators.py index 71d3c98..d71f225 100644 --- a/src/decorators.py +++ b/src/decorators.py @@ -133,6 +133,9 @@ class cmd: else: return + if nick not in var.USERS and not is_fake_nick(nick): + return + if nick in var.USERS and var.USERS[nick]["account"] != "*": acc = irc_lower(var.USERS[nick]["account"]) else: