From 276247b463ab0731c1476c94adc247a2934960b3 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 19 Dec 2012 16:03:53 -0500 Subject: Add a command flag to require that a user is executing the command --- include/commands.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/commands.h b/include/commands.h index e390fb3d3..6935db576 100644 --- a/include/commands.h +++ b/include/commands.h @@ -18,8 +18,14 @@ enum CommandFlag { + /* Command allow unidentified users to use it */ CFLAG_ALLOW_UNREGISTERED, - CFLAG_STRIP_CHANNEL + + /* Command's first parameter is a channel name */ + CFLAG_STRIP_CHANNEL, + + /* Command requires a user to execute */ + CFLAG_REQUIRE_USER }; /* Used in BotInfo::commands */ -- cgit