From ce857ad5f744f74b15ca36264609282c5642778e Mon Sep 17 00:00:00 2001 From: Doug Freed Date: Wed, 5 Aug 2015 10:39:02 +0400 Subject: Fix various things * Fix a typo * Adjust the ;restrict regex to allow using event IDs for restrictions * Add a falsematch command to make DLange shut up * Don't allow nohush commands be used by those with nocommands restriction * Stop making ASM -i --- modules/command.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/command.pl') diff --git a/modules/command.pl b/modules/command.pl index dd270ea..aa79f4d 100644 --- a/modules/command.pl +++ b/modules/command.pl @@ -45,7 +45,7 @@ sub command if ($cmd=~/$command->{cmd}/) { ASM::Util->dprint("$event->{from} told me: $cmd", "commander"); if (!ASM::Util->notRestricted($nick, "nocommands")) { - $fail = 1 unless (defined($command->{nohush}) && ($command->{nohush} eq "nohush")); + $fail = 1; } if ($fail == 1) { $conn->privmsg($nick, "You don't have permission to use that command, or you're not signed into nickserv."); -- cgit v1.2.3