comparison src/plugins/plugin_xep_0045.py @ 1381:0d12d4e32664

plugin XEP-0045: /join text command can be used in all contexts, not only group
author Goffi <goffi@goffi.org>
date Fri, 20 Mar 2015 20:49:58 +0100
parents 876c9fbd0b3d
children 73f8582c7c99
comparison
equal deleted inserted replaced
1380:8aa32bcc3a9c 1381:0d12d4e32664
461 return False 461 return False
462 462
463 def cmd_join(self, mess_data, profile): 463 def cmd_join(self, mess_data, profile):
464 """join a new room 464 """join a new room
465 465
466 @command (group): JID 466 @command (all): JID
467 - JID: room to join (on the same service if full jid is not specified) 467 - JID: room to join (on the same service if full jid is not specified)
468 """ 468 """
469 if mess_data["unparsed"].strip(): 469 if mess_data["unparsed"].strip():
470 room_jid = self.host.plugins[C.TEXT_CMDS].getRoomJID(mess_data["unparsed"].strip(), mess_data["to"].host) 470 room_jid = self.host.plugins[C.TEXT_CMDS].getRoomJID(mess_data["unparsed"].strip(), mess_data["to"].host)
471 nick = (self.getRoomNick(room_jid, profile) or 471 nick = (self.getRoomNick(room_jid, profile) or