]> jfr.im git - irc/rizon/bncbot.git/commitdiff
Allow more channel names in whyPattern
authorAdam <redacted>
Tue, 21 Oct 2014 00:40:38 +0000 (20:40 -0400)
committerAdam <redacted>
Tue, 21 Oct 2014 00:40:38 +0000 (20:40 -0400)
src/net/rizon/bncbot/BncBot.java

index a80ee813e12a15c7d66d5026c71a74364b8be10b..bd1a3e629e93824f1a6bc97ef117d4f64f999287 100644 (file)
@@ -320,7 +320,7 @@ public class BncBot {
                        String line, words[], userlookup = null;\r
                        Pattern ccStripper = Pattern.compile("[\u0002\u001F\u000F]");\r
                        Pattern colorStripper = Pattern.compile("\u0003[0-9]{1,2}(,[0-9]{1,2})?");\r
-                       Pattern whyPattern = Pattern.compile("([A-Z0-9`_^|\\[\\]\\-]*) has [A-Z]* access to #[A-Z]*. Reason: .*\\. Main nick: (.*)", Pattern.CASE_INSENSITIVE);\r
+                       Pattern whyPattern = Pattern.compile("([A-Z0-9`_^|\\[\\]\\-]*) has [A-Z]* access to #[A-Za-z-]*. Reason: .*\\. Main nick: (.*)", Pattern.CASE_INSENSITIVE);\r
                        Pattern userIs = Pattern.compile("([A-Z0-9`_^|\\[\\]\\-]*) is.*", Pattern.CASE_INSENSITIVE);\r
                        Pattern regPattern = Pattern.compile("Time registered: +(.*)$", Pattern.CASE_INSENSITIVE);\r
                        DateFormat dateParser = new SimpleDateFormat("MMM dd hh:mm:ss yyyy z");\r