aboutsummaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands.c b/commands.c
index b3fb422..e000ac5 100644
--- a/commands.c
+++ b/commands.c
@@ -173,7 +173,7 @@ int spam_command(struct string sender, struct string original_message, struct st
struct command_def *cmd = get_table_index(user_commands, argv[2]);
if (cmd) {
if (!cmd->local_only) {
- if (cmd->privs.len != 0 && sender.len != 3) {
+ if (cmd->privs.len != 0 && sender.len != 3 && !is_local) {
struct user_info *user = get_table_index(user_list, sender);
if (!user)
return 1; // really shouldn't happen