diff --git a/komrade/backend/the_operator.py b/komrade/backend/the_operator.py index e255871..2d78e4c 100644 --- a/komrade/backend/the_operator.py +++ b/komrade/backend/the_operator.py @@ -831,10 +831,11 @@ class TheOperator(Operator): 'from':self.uri, 'from_name':self.name, - 'msg':txt, - - 'type':'prompt', - 'prompt_id':'addcontact' + 'msg':{ + 'txt':txt, + 'type':'prompt', + 'prompt_id':'addcontact' + } } self.log('deliver_msg_d ->',deliver_msg_d) diff --git a/komrade/cli/cli.py b/komrade/cli/cli.py index adcf222..55388f9 100644 --- a/komrade/cli/cli.py +++ b/komrade/cli/cli.py @@ -384,7 +384,7 @@ class CLI(Logger): self.stat(f'Showing message {i+1} of {len(msgs)}, from newest to oldest. Hit Ctrl+D to exit.') print() print(msg) - # self.print('DATA',msg.msg_d) + self.log('DATA',msg.msg_d) if msg.data.get('prompt_id')=='addcontact': self.prompt_adduser(msg)