gcfavorites / sleekbot

Automatically exported from code.google.com/p/sleekbot
0 stars 0 forks source link

traceback on private message to bot over muc #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Send private message to bot in MUC.

What is the expected output? What do you see instead?
I want to get:
['message', 'subject', 'type', 'room', 'name']
Checking if I should respond to jid 
foo@conference.jabber.gazonk.cdr.se/albert
Checking if I should respond to real jid $MY_REAL_JID
Membership is not required

Instead I get:
['jid', 'resource', 'name', 'message', 'type', 'subject']
Checking if I should respond to jid foo@conference.jabber.gazonk.cdr.se
Unhandled exception in thread started by <bound method 
sleekbot.handle_message_event of <__main__.sleekbot object at 0x1118250>>
Traceback (most recent call last):
  File "/home/albert/dev/sleekbot/basebot.py", line 25, in 
handle_message_event
    if not self.shouldAnswerToMessage(msg):
  File "./sleekbot.py", line 150, in shouldAnswerToMessage
    return self.shouldAnswerToJid(msg.get('jid', ''))
  File "./sleekbot.py", line 158, in shouldAnswerToJid
    jid = self.getRealJid(passedJid)
  File "./sleekbot.py", line 134, in getRealJid
    realJid = self.plugin['xep_0045'].getJidProperty(bareJid, 
nick, 'jid')
  File "/home/albert/dev/sleekbot/sleekxmpp/plugins/xep_0045.py", line 
104, in getJidProperty
    return self.rooms[room][nick][jidProperty]

What version of the product are you using? On what operating system?
revision 24. Python-2.5.1, gentoo

Bot is moderator in room, user is not.

Original issue reported on code.google.com by alberth...@gmail.com on 28 Sep 2007 at 11:53

GoogleCodeExporter commented 9 years ago
I've fixed this now.

Original comment by k.i.sm...@gmail.com on 28 Sep 2007 at 3:24