From 132a637e60008986364cf578e77bd16838f7730a Mon Sep 17 00:00:00 2001 From: Akamaru Date: Mon, 14 Aug 2017 23:38:05 +0200 Subject: [PATCH] =?UTF-8?q?Printe=20wenn=20Gruppenname=20ge=C3=A4ndert=20w?= =?UTF-8?q?urde?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miku/bot.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/miku/bot.lua b/miku/bot.lua index 23c846b..399e6b1 100644 --- a/miku/bot.lua +++ b/miku/bot.lua @@ -330,7 +330,11 @@ function bot:print_msg(msg) filetext = '' end - return msg_time..from_chat..full_name..' \27[36m>>>\27[0m '..fwd_text..reply_text..filetext..msg.text..'\27[0m' + if msg.new_chat_title then + return msg_time..full_name..' hat den Gruppennamen zu \27[36m'..msg.new_chat_title..'\27[0m geƤndert.' + else + return msg_time..from_chat..full_name..' \27[36m>>>\27[0m '..fwd_text..reply_text..filetext..msg.text..'\27[0m' + end end -- Apply plugin.pre_process function