plugin text command, XEP-0045, XEP-0048, XEP-0249: removed feedBackWrongContext which is no more usefull with new _contextValid method
This commit is contained in:
parent
b2bb3ed564
commit
9443b14c59
1 changed files with 31 additions and 73 deletions
|
|
@ -423,14 +423,9 @@ class XEP_0048(object):
|
|||
@command (group): [autojoin | remove]
|
||||
- autojoin: join room automatically on connection
|
||||
"""
|
||||
log.debug("Catched bookmark command")
|
||||
client = self.host.getClient(profile)
|
||||
txt_cmd = self.host.plugins[C.TEXT_CMDS]
|
||||
|
||||
if mess_data['type'] != "groupchat":
|
||||
self.host.plugins[C.TEXT_CMDS].feedBackWrongContext('bookmark', 'groupchat', mess_data, profile)
|
||||
return False
|
||||
|
||||
options = mess_data["unparsed"].strip().split()
|
||||
if options and options[0] not in ('autojoin', 'remove'):
|
||||
txt_cmd.feedBack(_("Bad arguments"), mess_data, profile)
|
||||
|
|
|
|||
Loading…
Reference in a new issue