core: a new "info" type is used in newMessage for system messages (not comming from outside)
This commit is contained in:
parent
af2554a508
commit
a20e3e2cb8
1 changed files with 16 additions and 12 deletions
|
|
@ -168,7 +168,7 @@ class TextCommands(object):
|
|||
else:
|
||||
_from = self.host.getJidNStream(profile)[0]
|
||||
|
||||
self.host.bridge.newMessage(unicode(mess_data["to"]), message, mess_data['type'], unicode(_from), {}, profile=profile)
|
||||
self.host.bridge.newMessage(unicode(mess_data["to"]), message, C.MESS_TYPE_INFO, unicode(_from), {}, profile=profile)
|
||||
|
||||
def feedBackWrongContext(self, command, types, mess_data, profile):
|
||||
"""Give a generic message to the user when a command has been used in a wrong context.
|
||||
|
|
|
|||
Loading…
Reference in a new issue