|
@@ -14,7 +14,7 @@ var db = require('../util/database.js');
|
|
* @param {String} [old_username] - The username before the search.
|
|
* @param {String} [old_username] - The username before the search.
|
|
*/
|
|
*/
|
|
function cmd_verify(lang, msg, args, line, wiki, old_username = '') {
|
|
function cmd_verify(lang, msg, args, line, wiki, old_username = '') {
|
|
- if ( !msg.channel.isGuild() ) return this.LINK(lang, msg, line, wiki);
|
|
|
|
|
|
+ if ( !msg.channel.isGuild() || msg.defaultSettings ) return this.LINK(lang, msg, line, wiki);
|
|
if ( !msg.guild.me.permissions.has('MANAGE_ROLES') ) {
|
|
if ( !msg.guild.me.permissions.has('MANAGE_ROLES') ) {
|
|
if ( msg.isAdmin() ) {
|
|
if ( msg.isAdmin() ) {
|
|
console.log( msg.guild.id + ': Missing permissions - MANAGE_ROLES' );
|
|
console.log( msg.guild.id + ': Missing permissions - MANAGE_ROLES' );
|