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:
Goffi 2015-03-19 14:30:08 +01:00
commit 9443b14c59

View file

@ -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)