From 2d979a4ecc83b7760206222591df65f4af09c05e Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 29 Oct 2018 20:42:40 +1300 Subject: Natural: Adjustments --- Plugin/Natural.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Plugin/Natural.pm b/Plugin/Natural.pm index c62c1f3..b324e8b 100644 --- a/Plugin/Natural.pm +++ b/Plugin/Natural.pm @@ -61,7 +61,7 @@ sub choose_normal_response { return some("owie", ":("); } elsif ($what =~ /(\b(ow|owie|yow|yowie|ouchie)\b|(:\(|:'\())/i) { return some("oh no!", "*hugs $nick", "*bakes a cake for $nick"); - } elsif ($what =~ /\b(lol\b|kek\b|lel\b|lolol|haha|hehe|jaja)/i) { + } elsif ($what =~ /^\b(lol\b|kek\b|lel\b|lolol|haha|hehe|jaja)$/i) { return some(":)", ":D", "hehe"); } elsif ($what =~ /\b(:o)\b/i) { return some("?", "รถ", ":O", "!!"); @@ -69,6 +69,10 @@ sub choose_normal_response { return some("D:", "ono", "*throws a lifeline to $nick"); } elsif ($what =~ /(:D|:\)|D:|:\||:\\|:C|:S)/) { return some(":D", ":)", "D:", ":|", ":/", ":\\", ":S", ">:D", ">:(", ">>>:CCCC"); + } elsif ($what =~ /^o\/$/) { + return "\\o"; + } elsif ($what =~ /^\\o$/) { + return "o/"; } return; } -- cgit v1.1