]> ruin.nu Git - NDIRC.git/commitdiff
Remove indirect object notation
authorMichael Andreen <harv@ruin.nu>
Sat, 4 Jul 2020 13:28:32 +0000 (15:28 +0200)
committerMichael Andreen <harv@ruin.nu>
Sat, 4 Jul 2020 13:28:32 +0000 (15:28 +0200)
Bot.pm

diff --git a/Bot.pm b/Bot.pm
index 2fc95c2ba7b55ba9386709fbf9fa924e233e3cd6..e25918221d2dcb02af98c76f5883dffa7c718714 100644 (file)
--- a/Bot.pm
+++ b/Bot.pm
@@ -239,16 +239,16 @@ sub sig_usr2 {
 
 sub _build_disp {
        my ($self) = @_;
-       my $disp = new NDIRC::Dispatcher;
+       my $disp = NDIRC::Dispatcher->new;
 
-       if (my $commands = new IO::File 'commands'){
+       if (my $commands = IO::File->new('commands')){
                my @commands = split /\W+/, do{local $/; <$commands>};
                say "Loading commands from: @commands";
                $disp->load(@commands);
        }
 
        %{$self->targets} = ();
-       my $channels = new IO::File 'channels' or die $!;;
+       my $channels = IO::File->new('channels') or die $!;;
        while (<$channels>){
                my ($chan, @types) = split /\s+/;
                say "$chan - @types";