From d285d6375664a2d55d4e54f941e87114ea37fad4 Mon Sep 17 00:00:00 2001 From: "R. Alex Matevish" Date: Wed, 13 Jun 2018 14:18:02 -0700 Subject: [PATCH 1/2] Fix ya bish fork bomb --- plugins/ya_bish/ya_bish.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/ya_bish/ya_bish.rb b/plugins/ya_bish/ya_bish.rb index bd4e8c5..008ffcd 100644 --- a/plugins/ya_bish/ya_bish.rb +++ b/plugins/ya_bish/ya_bish.rb @@ -22,7 +22,8 @@ class << self def listen(m) + isnt_steggybot = /steggybot/.match m.user.nick ya_bish = /ya bish|steggybot/.match m.message - m.reply YaBish.ya_bish_array.sample if ya_bish + m.reply YaBish.ya_bish_array.sample if (ya_bish and isnt_steggybot) end end From aba4fbd487ebabfe4a53df370117f66e79fddbc7 Mon Sep 17 00:00:00 2001 From: "R. Alex Matevish" Date: Wed, 13 Jun 2018 14:26:17 -0700 Subject: [PATCH 2/2] Update ya_bish.rb --- plugins/ya_bish/ya_bish.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ya_bish/ya_bish.rb b/plugins/ya_bish/ya_bish.rb index 008ffcd..cfb4d01 100644 --- a/plugins/ya_bish/ya_bish.rb +++ b/plugins/ya_bish/ya_bish.rb @@ -22,7 +22,7 @@ class << self def listen(m) - isnt_steggybot = /steggybot/.match m.user.nick + isnt_steggybot = ! /steggybot/.match m.user.nick ya_bish = /ya bish|steggybot/.match m.message m.reply YaBish.ya_bish_array.sample if (ya_bish and isnt_steggybot) end