comparison src/plugins/plugin_misc_tarot.py @ 291:7c79d4a8c9e6

plugins: fixed bad import names
author Goffi <goffi@goffi.org>
date Sun, 06 Feb 2011 23:49:27 +0100
parents b1794cbb88e5
children 5fc5e6a7e5c3
comparison
equal deleted inserted replaced
290:59a82af700e2 291:7c79d4a8c9e6
48 PLUGIN_INFO = { 48 PLUGIN_INFO = {
49 "name": "Tarot cards plugin", 49 "name": "Tarot cards plugin",
50 "import_name": "Tarot", 50 "import_name": "Tarot",
51 "type": "Misc", 51 "type": "Misc",
52 "protocols": [], 52 "protocols": [],
53 "dependencies": ["XEP_0045"], 53 "dependencies": ["XEP-0045"],
54 "main": "Tarot", 54 "main": "Tarot",
55 "handler": "yes", 55 "handler": "yes",
56 "description": _("""Implementation of Tarot card game""") 56 "description": _("""Implementation of Tarot card game""")
57 } 57 }
58 58
406 error (_("profile %s is unknown") % profile_key) 406 error (_("profile %s is unknown") % profile_key)
407 return 407 return
408 if self.games.has_key(room_jid): 408 if self.games.has_key(room_jid):
409 warning (_("Tarot game already started in room %s") % room_jid.userhost()) 409 warning (_("Tarot game already started in room %s") % room_jid.userhost())
410 else: 410 else:
411 room_nick = self.host.plugins["XEP_0045"].getRoomNick(room_jid.userhost(), profile) 411 room_nick = self.host.plugins["XEP-0045"].getRoomNick(room_jid.userhost(), profile)
412 if not room_nick: 412 if not room_nick:
413 error ('Internal error') 413 error ('Internal error')
414 return 414 return
415 referee = room_jid.userhost() + '/' + room_nick 415 referee = room_jid.userhost() + '/' + room_nick
416 status = {} 416 status = {}