Skip to content

Commit

Permalink
disable admin plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Nurutomo committed Jan 15, 2021
1 parent 7f71959 commit 3083edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ conn.handler = async function (m) {
for (let name in global.plugins) {
let plugin = global.plugins[name]
if (!plugin) continue
if (plugin.tags.includes('admin')) continue
if (plugin.tags && plugin.tags.includes('admin')) continue
let _prefix = plugin.customPrefix ? plugin.customPrefix : conn.prefix ? conn.prefix : global.prefix
if ((usedPrefix = (_prefix.exec(m.text) || '')[0])) {
let noPrefix = m.text.replace(usedPrefix, '')
Expand Down

0 comments on commit 3083edf

Please sign in to comment.