diff src/plugins/plugin_xep_0048.py @ 1371:876c9fbd0b3d

plugin text command, XEP-0045, XEP-0048, XEP-0249: removed feedBackWrongContext which is no more usefull with new _contextValid method
author Goffi <goffi@goffi.org>
date Thu, 19 Mar 2015 14:30:08 +0100
parents 291eb8216f6e
children 6d0e01809893
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0048.py	Thu Mar 19 14:29:03 2015 +0100
+++ b/src/plugins/plugin_xep_0048.py	Thu Mar 19 14:30:08 2015 +0100
@@ -423,14 +423,9 @@
         @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)