Skip to content

Instantly share code, notes, and snippets.

@mashiro
Last active December 24, 2015 10:09
Show Gist options
  • Save mashiro/6782013 to your computer and use it in GitHub Desktop.
Save mashiro/6782013 to your computer and use it in GitHub Desktop.
if ($matched) {
Auto::Utils::sendto_channel_closure(
$receiver, $command, undef, undef, undef, 0
)->($text);
my $log_channel = $this->_runloop->mod_manager->get('Log::Channel');
if ($log_channel) {
$log_channel->message_arrived(
Tiarra::IRC::Message->new(
Command => $command,
Params => [ $receiver, $text ]
),
$this->_runloop->{sockets}->[1]
);
}
my $reply = ControlPort::Reply->new(200, 'OK');
$reply->MatchedChannels($matched);
return $reply;
} else {
return new ControlPort::Reply(404, "receiver Not Found (" . $error );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment