aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRahiel Kasim <rahielkasim@gmail.com>2016-02-24 09:00:37 +0100
committerRahiel Kasim <rahielkasim@gmail.com>2016-02-24 09:00:37 +0100
commit3e3f455f67c5ce4ff46b27684555d6f41ebf6d8a (patch)
tree20a234fcb7122154420c7e3e8292f9b32d78195c
parent05e0034ee24ae76a40f0734b86db790e093fa03e (diff)
remove newlines from messages
-rw-r--r--bismillah.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bismillah.py b/bismillah.py
index 4967229..22632f9 100644
--- a/bismillah.py
+++ b/bismillah.py
@@ -143,7 +143,7 @@ def serve(bot, update_id, data):
else:
s, a, quran_type = 1, 1, "english"
- print("%d:%.3f:%s" % (chat_id, time(), message))
+ print("%d:%.3f:%s" % (chat_id, time(), message.replace('\n', ' ')))
if chat_id < 0:
continue # bot should not be in a group