X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=CommonStates.pm;h=e46481cdc0f648f93e27539a14cf4368ca880ef9;hb=0d63bf9da52cdfe2c9d8850b690032ff539b6398;hp=5c0ab703aefd63b66691b72f955e322a8f67df94;hpb=a4667cce6415476312d6932f92f89fb28101ab88;p=NDIRC.git 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); }