summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/command.pl2
-rw-r--r--modules/event.pl2
2 files changed, 2 insertions, 2 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.");
diff --git a/modules/event.pl b/modules/event.pl
index b2490b0..873fb89 100644
--- a/modules/event.pl
+++ b/modules/event.pl
@@ -227,7 +227,7 @@ sub on_account
sub on_connect {
my ($conn, $event) = @_; # need to check for no services
- $conn->sl("MODE $event->{args}->[0] +Q-i");
+ $conn->sl("MODE $event->{args}->[0] +Q");
if (lc $event->{args}->[0] ne lc $::settings->{nick}) {
ASM::Util->dprint('Attempting to regain my main nick', 'startup');
$conn->privmsg( 'NickServ@services.', "regain $::settings->{nick} $::settings->{pass}" );