Skip to content

@stfnm /test.pl secret

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
use strict;
use warnings;
my %SCRIPT = (
name => 'test',
author => 'stfn <stfnmd@gmail.com>',
version => '0.1',
license => 'GPL3',
desc => 'Test script to demonstrate U+200B problem',
);
weechat::register($SCRIPT{"name"}, $SCRIPT{"author"}, $SCRIPT{"version"}, $SCRIPT{"license"}, $SCRIPT{"desc"}, "", "");
weechat::hook_command($SCRIPT{"name"}, $SCRIPT{"desc"}, "", "", "", "command_cb", "");
# '/test' command
sub command_cb
{
my $buffer = $_[0];
# The test message below fails, the "OK" part never shows up in weechat.
# Though the log file written by the logger plugin contains the correct
# and complete message.
weechat::command($buffer, "Test: \x{200B} OK");
return weechat::WEECHAT_RC_OK;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.