X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=Bot.pm;h=e20412974d739aed53fcab70262188d564a3bc3f;hb=cf8fc5e52f53abda2b2372fb8c337710155f9525;hp=363531217864018f1faf26ab54ec00a37cbeae9d;hpb=c9c9e83da024d15fc1245bf456c197c119f23cf4;p=NDIRC.git 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 {