X-Git-Url: https://ruin.nu/git/?p=NDIRC.git;a=blobdiff_plain;f=CommonStates.pm;h=e46481cdc0f648f93e27539a14cf4368ca880ef9;hp=5c0ab703aefd63b66691b72f955e322a8f67df94;hb=0d63bf9da52cdfe2c9d8850b690032ff539b6398;hpb=5f2c0808b406a1c97a4cf07d1c7c51d574b4a6f6 diff --git a/CommonStates.pm b/CommonStates.pm index 5c0ab70..e46481c 100644 --- a/CommonStates.pm +++ b/CommonStates.pm @@ -121,6 +121,10 @@ sub sig_usr2 { while (<$channels>){ my ($chan, @types) = split /\s+/; say "$chan - @types"; + if ($chan =~ /^(.*):(.*)$/){ + $chan = $1; + $disp->set_target($2,$chan); + } $disp->add_channel($chan,\@types); }