Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UCC
Discord Bot
Commits
d49027c1
Unverified
Commit
d49027c1
authored
Mar 27, 2020
by
tec
Browse files
Oh, and 'study' is a valid field. Should proably refactor this section
of code
parent
8efbd4bf
Pipeline
#198
failed with stages
in 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/user_management.rs
View file @
d49027c1
...
...
@@ -278,7 +278,7 @@ impl Commands {
let
mut
property
=
String
::
from
(
info_content
[
0
]);
property
=
property
.replace
(
"github"
,
"git"
);
if
info_content
.len
()
==
1
||
!
vec!
[
"bio"
,
"git"
,
"web"
,
"photo"
]
.contains
(
&
property
.as_str
())
||
!
vec!
[
"bio"
,
"git"
,
"web"
,
"photo"
,
"study"
]
.contains
(
&
property
.as_str
())
{
msg
.channel_id
.send_message
(
&
ctx
.http
,
|
m
|
{
...
...
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