inject-messages: use new send_message API

(imported from commit a0ea83fcd1944d06d8b0d9e6bed49a33901b20fe)
This commit is contained in:
Zev Benjamin 2012-11-27 16:00:32 -05:00
parent 84ab466ff3
commit 9edea3454a
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ def send_message(character, text, subject):
client = characters[character]["client"]
request = {'type': 'stream',
'content': message,
'stream': 'othello',
'to': ['othello'],
'subject': truncate(subject, 60)}
response = client.send_message(request)
if response['result'] != 'success':