diff src/plugins/plugin_xep_0249.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 bf3f669a6052
children 6d0e01809893
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0249.py	Thu Mar 19 14:29:03 2015 +0100
+++ b/src/plugins/plugin_xep_0249.py	Thu Mar 19 14:30:08 2015 +0100
@@ -171,12 +171,6 @@
         @command (group): (JID)
             - JID: the JID of the person to invite
         """
-        log.debug("Catched invite command")
-
-        if mess_data['type'] != "groupchat":
-            self.host.plugins[C.TEXT_CMDS].feedBackWrongContext('invite', 'groupchat', mess_data, profile)
-            return False
-
         jid_s = mess_data["unparsed"].strip()
         try:
             assert(jid_s)