From BStegmaier

Jump to: navigation, search

I was annoyed at gozerbot sending simple messages without the type="chat" flag set. This means that (at least with my client) every message appears in an extra popup.

By adding 2 lines to /var/lib/python-support/python2.5/gozerbot/jabbermsg.py it is possible to chat in an more comfortable manner:

--- jabbermsg.py.orig   2008-06-02 13:22:38.000000000 +0200
+++ jabbermsg.py        2009-02-20 12:22:03.000000000 +0100
@@ -119,6 +119,8 @@
             else:
                 repl.setTo(self.channel)
             repl.setType('groupchat')
+        else:
+            repl.setType('chat')
         if self.bot.google:
             repl.setFrom(self.bot.me)
         repl.setID(self.id)
@@ -248,4 +250,4 @@
             self.reply(cmnd + ' ' + txt)
         else:
             self.reply('missing origtxt: %s' % txt)
-       
\ No newline at end of file
+