This commit is contained in:
Flummi 2016-08-23 17:37:28 +00:00
parent eb1aa8edaa
commit 680ef78f07

View File

@ -8,7 +8,7 @@ module.exports = (bot, trigger, lib) => {
call: new RegExp('https?:\\/\\/[\\w-]+(\\.[\\w-]+)+\\.?(:\\d+)?(\\/\\S*)?', 'gi'),
level: 0,
func: (e) => {
if(e.channel.getName() != '#f0ck') {
if(e.channel.getName() == '#f0ck') {
if(!e.message.match(/\!ignore$/)) {
var tmp = e.message.match(/https?:\/\/[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?/gi); // get links
tmp.forEach((entry,i,a) => {