diff options
| author | 2015-08-05 10:39:02 +0400 | |
|---|---|---|
| committer | 2015-08-05 10:39:02 +0400 | |
| commit | ce857ad5f744f74b15ca36264609282c5642778e (patch) | |
| tree | 6157e5303a09bf8509f4f1ed0ace70e963a73e14 /modules/command.pl | |
| parent | 1b3b067580d5583ab0233c68904c06f16366abfc (diff) | |
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
Diffstat (limited to 'modules/command.pl')
| -rw-r--r-- | modules/command.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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."); |
