Last active
December 24, 2015 10:09
-
-
Save mashiro/6782013 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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