Closed nomadcz closed 11 years ago
Hi You can use multiple Strings in the new version which I commited yesterday, the seperator is the new line "\n" (or simple: use a line for every string).
I'll use UTF-8 now for every plugin ;) The fixes will follow over the day.
Changed in last commit. I'm using now the collation which is selected while installation.
Thank you sir. If you have the paypal I will gladly send you some small amount for your swift support. Best regards, Michal
Od: "Jones" Komu: "JN-Jones/MyBot" Datum: 09.10.2012 10:40 Předmět: Re: [MyBot] Non ASCII characters in string + feature request (#2)
Hi You can use multiple Strings in the new version which I commited yesterday, the seperator is the new line "\n" (or simple: use a line for every string). I'll use UTF-8 now for every plugin ;) The fixes will follow over the day. — Reply to this email directly or view it on GitHub.
Hi. Thank you for MyBot plugin.
Is there a way to specify multiple strings in one rule ? Kind of string1 or string2 ? Or regex ? With one string it works great - with two not at all. I would like to have rule BADWORDS with bad words - one per line - so any of them would trigger an action.
And there is some issue with non ASCII characters I guess. When I choose "string rule" and put for example "č" in line one and "ž" in line two in the string box I get:
Warning [2] array_key_exists() expects parameter 2 to be array, boolean given - Line: 702 - File: admin/modules/user/mybot.php PHP 5.4.4-7 (Linux)
File Line Function [PHP] errorHandler->error /admin/modules/user/mybot.php 702 array_key_exists /admin/index.php 523 require
This error is repeated multiple times with different line numbers.
Best regards, Michal
UPDATE: I guess language issue is related to the fact you do not use UTF8 for DB. After conversion this error has gone away - same issue with Announcement -> withou conversion I was getting "?" for czech characters