-
-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/cmd list <muc>
doesn't list MUC adhoc commands
#1949
Milestone
Comments
Could you tell me a public MUC which has this enabled? |
[Sporani.ca Project ***@***.***?join) has a Giphy adhoc command.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some MUCs have special adhoc commands, however while these commands do enter the
_command_list_result_handler
andwin_handle_command_list
functions, and they end up inside thecmds
GSList object, somehowwin_println
refuses to print them to the console. I tried debugging it, but it didn't make sense to me.What I think might be happening is that if the
node
attribute is a URL or contains special characters likehttp://prosody.im/protocol/hats#add
orp1:hats#list
, Profanity won't print them for reasons I don't yet understand. As far as I can see, Profanity uses thenode
attribute inside theitem
element in the adhoc commands IQ stanza as the name for the command. For simple server commands,node
might beping
, however for MUC commands it's often more complex likehttp://prosody.im/protocol/hats#add
orp1:hats#list
. While running/cmd exec http://prosody.im/protocol/hats#add <muc>
does work, it's not listed in/cmd list <muc>
which bothers me.Expected Behavior
The
/cmd list
displays the commands regardless of the complexnode
attribute. Perhaps internally Profanity might simplify the commands to make them less of a hurdle to type out, or even tab completion?Current Behavior
Profanity does not list the commands despite their existence as evidenced in
/xmlconsole
.Possible Solution
Steps to Reproduce (for bugs)
/cmd list <muc>
where<muc>
is your MUC./xmlconsole
and observe how the ejabberd server did actually supply valid commands.Context
I want to make use of MUC adhoc commands, but this makes the process of finding them very cumbersome.
Environment
The text was updated successfully, but these errors were encountered: