Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sfu
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alain Takoudjou
sfu
Commits
d98c9b95
Commit
d98c9b95
authored
Nov 30, 2020
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement commands /warn and /wall.
parent
ed531cef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
static/sfu.js
static/sfu.js
+20
-0
No files found.
static/sfu.js
View file @
d98c9b95
...
@@ -1828,6 +1828,26 @@ commands.mute = {
...
@@ -1828,6 +1828,26 @@ commands.mute = {
f
:
userMessage
,
f
:
userMessage
,
};
};
commands
.
warn
=
{
parameters
:
'
user message
'
,
description
:
'
send a warning to a user
'
,
predicate
:
operatorPredicate
,
f
:
(
c
,
r
)
=>
{
userMessage
(
'
warning
'
,
r
);
},
};
commands
.
wall
=
{
parameters
:
'
message
'
,
description
:
'
send a warning to all users
'
,
predicate
:
operatorPredicate
,
f
:
(
c
,
r
)
=>
{
if
(
!
r
)
throw
new
Error
(
'
empty message
'
);
serverConnection
.
userMessage
(
getUsername
(),
'
warning
'
,
''
,
r
);
},
};
function
handleInput
()
{
function
handleInput
()
{
let
input
=
/** @type {HTMLTextAreaElement} */
let
input
=
/** @type {HTMLTextAreaElement} */
(
document
.
getElementById
(
'
input
'
));
(
document
.
getElementById
(
'
input
'
));
...
...
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