diff options
| author | Thomas B. Ruecker | 2015-06-30 12:01:33 +0000 | 
|---|---|---|
| committer | Thomas B. Ruecker | 2015-06-30 12:01:33 +0000 | 
| commit | ff5792b134e8da5b31d7c4e61b5124bae726130f (patch) | |
| tree | bb984329847277723632324b3eb7dd02befbefb5 | |
| parent | 351493e5bf930c51b929724d7ff9ef43e7a70622 (diff) | |
| download | scripts.irssi.org-ff5792b134e8da5b31d7c4e61b5124bae726130f.tar.bz2 | |
Fix UTF-8 encoding problem
| -rw-r--r-- | scripts/mqtt-notify.pl | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/scripts/mqtt-notify.pl b/scripts/mqtt-notify.pl index 202d964..f389f45 100644 --- a/scripts/mqtt-notify.pl +++ b/scripts/mqtt-notify.pl @@ -124,8 +124,8 @@ sub sig_message_private ($$$$) {    if ((Irssi::settings_get_bool('mqtt_reveal_privmsg'))) {      $body = '(PM: '.$nick.")\n".$data;    } -  utf8::decode($body);    $body = Irssi::strip_codes($body); +  utf8::decode($body);    my @message_args = @args;    push(@message_args, "-m", $body);    mosquitto_pub(@message_args); @@ -138,8 +138,8 @@ sub sig_print_text ($$$) {    if ($dest->{level} & MSGLEVEL_HILIGHT) {      my $body = '['.$dest->{target}."]\n".$stripped; -    utf8::decode($body);      $body = Irssi::strip_codes($body); +    utf8::decode($body);      my @message_args = @args;      push(@message_args, "-m", $body);      mosquitto_pub(@message_args); @@ -173,8 +173,8 @@ sub sig_message_topic {    my($server, $channel, $topic, $nick, $address) = @_;    my $body = 'Topic for '.$channel."\n".$topic; -  utf8::decode($body);    $body = Irssi::strip_codes($body); +  utf8::decode($body);    my @message_args = @args;    push(@message_args, "-m", $body);    mosquitto_pub(@message_args); | 
