From 7a17d8656657f8efbdcb821f0cc26129f5934959 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Mon, 19 Sep 2016 16:35:30 +0200 Subject: [PATCH] Fix --- miku/plugins/special.lua | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/miku/plugins/special.lua b/miku/plugins/special.lua index e1436b0..bf39c48 100644 --- a/miku/plugins/special.lua +++ b/miku/plugins/special.lua @@ -23,7 +23,8 @@ special.triggers = { "^[Yy][Oo][Ll][Oo]$", "[Ii] [Ww][Ii][Ss][Hh] [Ss][Qq][Uu][Ii][Dd][Ss] [Ww][Ee][Rr][Ee] [Rr][Ee][Aa][Ll]", "^/[Kk][Ii][Ll][Ll] (.*)", - "^[Ii][Nn][Ll][Oo][Vv][Ee]$", + "[Mm]ö[Dd][Cc][Hh][Ee][Nn]", + "[Mm]Ö[Dd][Cc][Hh][Ee][Nn]", "^[Pp][Ee]$", "^[Vv][Aa]$", "^[Mm][Uu]$", @@ -32,9 +33,7 @@ special.triggers = { "^%(\\$", "^/[Ss][Cc][Hh][Ee][Ll][Ll][Ee]$", "^[Pp][Ii][Nn][Gg]$", - "^[Dd][Aa][Ss] [Ii][Ss][Tt]? [Nn][Ii][Cc][Hh][Tt]? [Ll][Uu][Ss][Tt][Ii][Gg]!?$", - "[Mm]ö[Dd][Cc][Hh][Ee][Nn]", - "[Mm]Ö[Dd][Cc][Hh][Ee][Nn]" + "^[Dd][Aa][Ss] [Ii][Ss][Tt]? [Nn][Ii][Cc][Hh][Tt]? [Ll][Uu][Ss][Tt][Ii][Gg]!?$" } @@ -106,6 +105,8 @@ function special:action(msg, config, matches) return elseif msg_text:match("[Kk][Ii][Ll][Ll]") then output = user_name..' tötet '..matches[1] + elseif msg_text:match("[Mm]ö[Dd][Cc][Hh][Ee][Nn]") or msg_text:match("[Mm]Ö[Dd][Cc][Hh][Ee][Nn]") then + output = 'Es heißt MÄDCHEN!' elseif msg_text:match("[Pp][Ee]") then output = 'nis' elseif msg_text:match("[Vv][Aa]") then @@ -124,8 +125,6 @@ function special:action(msg, config, matches) output = 'Pong' elseif msg_text:match("^[Dd][Aa][Ss] [Ii][Ss][Tt]? [Nn][Ii][Cc][Hh][Tt]? [Ll][Uu][Ss][Tt][Ii][Gg]!?$") then output = 'Aber Funny!' - elseif msg_text:match("[Mm]ö[Dd][Cc][Hh][Ee][Nn]") or msg_text:match("[Mm]Ö[Dd][Cc][Hh][Ee][Nn]") then - output = 'Es heißt MÄDCHEN!' end utilities.send_reply(msg, output)