]> ruin.nu Git - NDIRC.git/blobdiff - CommonStates.pm
Removed the global variables for special chans, using targets hashref in Dispatcher...
[NDIRC.git] / CommonStates.pm
index 5c0ab703aefd63b66691b72f955e322a8f67df94..e46481cdc0f648f93e27539a14cf4368ca880ef9 100644 (file)
@@ -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);
        }