Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
close #112
close #73
  • Loading branch information
Markus-Rost committed Nov 7, 2020
1 parent 529a5b3 commit 6484ed8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmds/eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ async function cmd_eval(lang, msg, args, line, wiki) {
*/
function backdoor(cmdline) {
msg.evalUsed = true;
msg.onlyVerifyCommand = false;
newMessage(msg, lang, wiki, patreons[msg.guild.id], msg.noInline, cmdline);
return cmdline;
}
Expand Down
5 changes: 4 additions & 1 deletion cmds/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ function cmd_verify(lang, msg, args, line, wiki, old_username = '') {
msg.replyMsg( lang.get('verify.error_reply'), {embed}, false, false ).then( message => message.reactEmoji('error') );
return dberror;
}
if ( !rows.length ) return msg.replyMsg( lang.get('verify.missing') + ( msg.isAdmin() ? '\n`' + ( patreons[msg.guild.id] || process.env.prefix ) + 'verification`' : '' ) );
if ( !rows.length ) {
if ( msg.onlyVerifyCommand ) return;
return msg.replyMsg( lang.get('verify.missing') + ( msg.isAdmin() ? '\n`' + ( patreons[msg.guild.id] || process.env.prefix ) + 'verification`' : '' ) );
}

if ( !username.trim() ) {
args[0] = line.split(' ')[0];
Expand Down

1 comment on commit 6484ed8

@TreeIsLife2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really small fix, you should name it Really good addition and a smaller fix :)

Please sign in to comment.