diff --git a/chatcommunicate.py b/chatcommunicate.py
index 31df40d2be..83550bbc62 100644
--- a/chatcommunicate.py
+++ b/chatcommunicate.py
@@ -341,10 +341,15 @@ def on_msg(msg, client):
return
+ check_ending_div = False
if message.content.startswith("
"):
message.content = message.content[21:]
- if message.content.endswith("
"):
- message.content = message.content[:-6]
+ check_ending_div = True
+ elif message.content.startswith(""):
+ message.content = message.content[18:]
+ check_ending_div = True
+ if check_ending_div and message.content.endswith("
"):
+ message.content = message.content[:-6]
if message.parent:
try: