X-Git-Url: https://ruin.nu/git/?p=NDIRC.git;a=blobdiff_plain;f=Bot.pm;fp=Bot.pm;h=e20412974d739aed53fcab70262188d564a3bc3f;hp=363531217864018f1faf26ab54ec00a37cbeae9d;hb=c9251f1bab067759546d60d35782731360ad70df;hpb=e480fb7b3c0528e11d3381939d02db9a3042554b diff --git a/Bot.pm b/Bot.pm index 3635312..e204129 100644 --- a/Bot.pm +++ b/Bot.pm @@ -255,7 +255,7 @@ sub _build_disp { if ($chan =~ /^(.*):(.*)$/){ $chan = $1; $self->targets->{$2} = [] unless exists $self->targets->{$2}; - push @{$self->targets->{$2}},$chan; + push @{$self->targets->{$2}},lc $chan; say "$2 - @{$self->targets->{$2}}"; } $disp->add_channel($chan,\@types); @@ -449,7 +449,7 @@ sub message { my ($self, $msg, @targets) = @_; for (@targets) { - when (/^D-(\d+)$/) { + when (/^D-(\d+)$/i) { $self->discordMessage($1, $msg); } default {