plugin XEP-0245: removed plugin XEP-0245:
at the end it adds complications to handle XEP-0245 in backend (because edge cases must be handled: info type with group chat, history when message is info but for a group chat, etc) while it's trivial to handle it in frontend.
So /me detection is handled in QuickFrontend and cmd_me is back into plugin_misc_text_commands, it is the choice of the frontend to display or not the "/me" (for frontends based on QuickFrontend it remains automatic).
This commit is contained in:
parent
f378675f78
commit
eb1dd1d177
1 changed files with 34 additions and 102 deletions
|
|
@ -31,7 +31,7 @@ PLUGIN_INFO = {
|
|||
"name": "Text commands",
|
||||
"import_name": C.TEXT_CMDS,
|
||||
"type": "Misc",
|
||||
"protocols": [],
|
||||
"protocols": ["XEP-0245"],
|
||||
"dependencies": [],
|
||||
"main": "TextCommands",
|
||||
"handler": "no",
|
||||
|
|
@ -351,6 +351,16 @@ class TextCommands(object):
|
|||
|
||||
return strings
|
||||
|
||||
def cmd_me(self, client, mess_data):
|
||||
"""display a message at third person
|
||||
|
||||
@command (all): message
|
||||
- message: message to show at third person
|
||||
e.g.: "/me clenches his fist" will give "[YOUR_NICK] clenches his fist"
|
||||
"""
|
||||
# We just ignore the command as the match is done on receiption by clients
|
||||
return True
|
||||
|
||||
def cmd_help(self, client, mess_data):
|
||||
"""show help on available commands
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue