diff src/plugins/plugin_misc_text_commands.py @ 1171:0abce7f17782

core: a new "info" type is used in newMessage for system messages (not comming from outside)
author Goffi <goffi@goffi.org>
date Fri, 05 Sep 2014 19:29:30 +0200
parents 246712d2e7bc
children 96fb74a4714d
line wrap: on
line diff
--- a/src/plugins/plugin_misc_text_commands.py	Fri Sep 05 11:16:38 2014 +0200
+++ b/src/plugins/plugin_misc_text_commands.py	Fri Sep 05 19:29:30 2014 +0200
@@ -168,7 +168,7 @@
         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.