mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
50_TelegramBot: parsemode corrected for multiple lines - msg1041326
git-svn-id: https://svn.fhem.de/fhem/trunk@21652 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
09b64d5e8d
commit
dbd119bbb6
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- bugfix: 50_TelegramBot: parsemode corrected for multiple lines - msg1041326
|
||||
- change: 37_echodevice.pm more loginformations set "NPM_login new"
|
||||
- change: 93_Log2Syslog: new reading 'Parse_Err_LastData', minor changes
|
||||
- change: 93_Log2Syslog: some code changes and reviews
|
||||
|
@ -169,6 +169,9 @@
|
||||
# Corrected Eol
|
||||
# 2.9 2019-05-23 allow \s, addtl silenCmds, fixes
|
||||
|
||||
# FIX: correct parsemodesend for inMsg with multiple lines - msg1041326
|
||||
#
|
||||
#
|
||||
#
|
||||
##############################################################################
|
||||
# TASKS
|
||||
@ -1778,10 +1781,10 @@ sub TelegramBot_SendIt($$$$$;$$$)
|
||||
$parseMode = "HTML";
|
||||
} elsif ( $parseMode == 3 ) {
|
||||
$parseMode = 0;
|
||||
if ( $msg =~ /^markdown(.*)$/i ) {
|
||||
if ( $msg =~ /^markdown(.*)$/is ) {
|
||||
$msg = $1;
|
||||
$parseMode = "Markdown";
|
||||
} elsif ( $msg =~ /^HTML(.*)$/i ) {
|
||||
} elsif ( $msg =~ /^HTML(.*)$/is ) {
|
||||
$msg = $1;
|
||||
$parseMode = "HTML";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user