Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
f5fbf712
Commit
f5fbf712
authored
Dec 07, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New config setting: muc_disable_moderator_commands
parent
636f0210
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
docs/CHANGES.md
docs/CHANGES.md
+3
-0
docs/source/configuration.rst
docs/source/configuration.rst
+7
-0
src/converse-muc.js
src/converse-muc.js
+4
-0
No files found.
docs/CHANGES.md
View file @
f5fbf712
...
@@ -12,6 +12,9 @@
...
@@ -12,6 +12,9 @@
-
Fix empty controlbox toggle after disconnect. [jcbrand]
-
Fix empty controlbox toggle after disconnect. [jcbrand]
-
When inviting someone to a members-only room, first add them to the member
-
When inviting someone to a members-only room, first add them to the member
list. [jcbrand]
list. [jcbrand]
-
New configuration setting
[
muc_disable_moderator_commands
](
https://conversejs.org/docs/html/configuration.html#muc_disable_moderator_commands
)
[jcbrand]
## 2.0.3 (2016-11-30)
## 2.0.3 (2016-11-30)
-
#735 Room configuration button not visible. [jcbrand]
-
#735 Room configuration button not visible. [jcbrand]
...
...
docs/source/configuration.rst
View file @
f5fbf712
...
@@ -709,6 +709,13 @@ See also the `storage`_ option, which applies to other cached data, such as
...
@@ -709,6 +709,13 @@ See also the `storage`_ option, which applies to other cached data, such as
which chats you have open, what features the XMPP server supports and what
which chats you have open, what features the XMPP server supports and what
your online status is.
your online status is.
muc_disable_moderator_commands
------------------------------
* Default: ``false``
Allows you to disable the moderator commands such as ``/kick`` or ``/ban``.
muc_domain
muc_domain
----------
----------
...
...
src/converse-muc.js
View file @
f5fbf712
...
@@ -293,6 +293,7 @@
...
@@ -293,6 +293,7 @@
auto_join_rooms
:
[],
auto_join_rooms
:
[],
auto_list_rooms
:
false
,
auto_list_rooms
:
false
,
hide_muc_server
:
false
,
hide_muc_server
:
false
,
muc_disable_moderator_commands
:
false
,
muc_domain
:
undefined
,
muc_domain
:
undefined
,
muc_history_max_stanzas
:
undefined
,
muc_history_max_stanzas
:
undefined
,
muc_instant_rooms
:
true
,
muc_instant_rooms
:
true
,
...
@@ -827,6 +828,9 @@
...
@@ -827,6 +828,9 @@
* Parameters:
* Parameters:
* (String) text - The message text.
* (String) text - The message text.
*/
*/
if
(
converse
.
muc_disable_moderator_commands
)
{
return
this
.
sendChatRoomMessage
(
text
);
}
var
match
=
text
.
replace
(
/^
\s
*/
,
""
).
match
(
/^
\/(
.*
?)(?:
(
.*
))?
$/
)
||
[
false
,
''
,
''
],
var
match
=
text
.
replace
(
/^
\s
*/
,
""
).
match
(
/^
\/(
.*
?)(?:
(
.*
))?
$/
)
||
[
false
,
''
,
''
],
args
=
match
[
2
]
&&
match
[
2
].
splitOnce
(
'
'
)
||
[];
args
=
match
[
2
]
&&
match
[
2
].
splitOnce
(
'
'
)
||
[];
switch
(
match
[
1
])
{
switch
(
match
[
1
])
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment