forked from GitHub/dbot
Merge branch 'master' into master
This commit is contained in:
commit
c26be5410f
@ -19,7 +19,8 @@ var kill_namespam = function(dbot) {
|
|||||||
// Here we listen for atropos
|
// Here we listen for atropos
|
||||||
if(event.channel == this.config.cliconn_channel) {
|
if(event.channel == this.config.cliconn_channel) {
|
||||||
if(event.message.match('▶')) {
|
if(event.message.match('▶')) {
|
||||||
var matchedPattern = _.find(this.config.cliconn_patterns, function(p) { return event.message.match(p); })
|
var matchedPattern = _.find(this.config.cliconn_patterns,
|
||||||
|
function(p) { try { return event.message.match(p); } catch(e) {}; }); // ok.jpg
|
||||||
if(matchedPattern) {
|
if(matchedPattern) {
|
||||||
var nick = event.message.split(' ')[2];
|
var nick = event.message.split(' ')[2];
|
||||||
dbot.api.nickserv.getUserHost(event.server, nick, function(host) {
|
dbot.api.nickserv.getUserHost(event.server, nick, function(host) {
|
||||||
|
Loading…
Reference in New Issue
Block a user