diff options
author | Alexander NeonXP Kiryukhin <frei@neonxp.info> | 2016-05-27 16:48:12 +0300 |
---|---|---|
committer | Alexander NeonXP Kiryukhin <frei@neonxp.info> | 2016-05-27 16:48:12 +0300 |
commit | fb5adfc60241bc5e3b37e9143be267467eaaf6d6 (patch) | |
tree | 2efa08679ce5938ac7b166c36beb87138348d8c1 /src/NeonXP/BotScript.php | |
parent | 8c355d994794f908a66dd4abb893e6f2fa4728b2 (diff) |
Added DB search 10
Diffstat (limited to 'src/NeonXP/BotScript.php')
-rw-r--r-- | src/NeonXP/BotScript.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/NeonXP/BotScript.php b/src/NeonXP/BotScript.php index 9886819..1570955 100644 --- a/src/NeonXP/BotScript.php +++ b/src/NeonXP/BotScript.php @@ -84,7 +84,7 @@ class BotScript ]; $result = 'Непонятно :('; $header = ' № | А | Я | A | Z | Двоичн | Морзе ' . PHP_EOL . '____________________________________'; - if ($text == '$') { + if ($text == '?') { $result = ''; foreach ($db as $key => $value) { if ($key < 10) { @@ -101,9 +101,9 @@ class BotScript $result = "$text | $value[0] | $value[1] | $value[2] | $value[3] | $value[4] | $value[5]" . PHP_EOL; } } else { + $result = ''; for ($i = 0; $i < mb_strlen($text, 'utf8'); $i++) { $char = mb_substr($text, $i, 1, 'utf8'); - $result = ''; foreach ($db as $key => $value) { if (mb_strtolower($value[0], 'utf8') == mb_strtolower($char)) { if ($key < 10) { |