diff options
Diffstat (limited to 'telegram-chat')
-rw-r--r-- | telegram-chat | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/telegram-chat b/telegram-chat index dffded1..3d94221 100644 --- a/telegram-chat +++ b/telegram-chat @@ -125,7 +125,9 @@ $WaitFullyConnected; } } } else={ - $LogPrintExit2 warning $0 ("Received a message from untrusted contact '" . $FromUserName . "' (ID " . $FromID . ")!") false; + $LogPrintExit2 warning $0 ("Received a message from untrusted contact " . \ + [ $IfThenElse ($FromUserName = false) "without username" ("'" . $FromUserName . "'") ] . \ + " (ID " . $FromID . ")!") false; :if ($Text ~ ("^! *" . [ $EscapeForRegEx $Identity ] . "\$")) do={ $SendTelegram2 ({ origin=$0; chatid=$ChatID; silent=false; \ subject=([ $SymbolForNotification "speech-balloon" ] . "Telegram Chat"); \ |