decoded sender to concat in string
This commit is contained in:
parent
62c2deb0db
commit
b6a9975f61
1 changed files with 3 additions and 3 deletions
6
chat.py
6
chat.py
|
@ -88,10 +88,10 @@ def messages_post():
|
|||
if "spam" in str(message, "UTF-8").lower():
|
||||
messages.append(Message(time, "1.3.3.7", "ip", "Nee"))
|
||||
return "OK"
|
||||
|
||||
|
||||
if sender != "somebody":
|
||||
message = "<" + sender + "> " + message
|
||||
|
||||
message = "<" + sender.decode() + "> " + message
|
||||
|
||||
messages.append(Message(time, sender, sendertype, str(message, "UTF-8")))
|
||||
url = 'http://10.0.5.42:8000/' # Set destination URL here
|
||||
post_fields = {'X-Messages': base64.b64encode(message)}
|
||||
|
|
Loading…
Reference in a new issue