AnyEvent-IRC
view release on metacpan or search on metacpan
lib/AnyEvent/IRC/Client.pm view on Meta::CPAN
appending the CTCP command with a C<"\001">. For example if you want to
send a CTCP ACTION you have to give this C<$cmd>:
$cl->send_long_message (undef, 0, "PRIVMSG\001ACTION", "#test", "rofls");
C<$encoding> can be undef if you don't need any recoding of C<$msg>.
But in case you want to send Unicode it is necessary to determine where
to split a message exactly, to not break the encoding.
Please also note that the C<nick_ident> for your own nick is necessary to
compute this. To ensure best performance as possible use the
C<send_initial_whois> option if you want to use this method.
But note that this method might not work 100% correct and you might still get
at least partially chopped off lines if you use C<send_long_message> before the
C<WHOIS> reply to C<send_initial_whois> arrived.
To be on the safest side you might want to wait until that initial C<WHOIS>
reply arrived.
The return value of this method is the list of the actually sent lines (but
( run in 1.272 second using v1.01-cache-2.11-cpan-4e96b696675 )