fixed karma voting
This commit is contained in:
parent
40548ed7fc
commit
a9b97d179d
@ -35,7 +35,10 @@ class KarmaPlugin implements CallbackListener, Plugin {
|
|||||||
/**
|
/**
|
||||||
* Private properties
|
* Private properties
|
||||||
*/
|
*/
|
||||||
/** @var maniaControl $maniaControl */
|
/**
|
||||||
|
*
|
||||||
|
* @var maniaControl $maniaControl
|
||||||
|
*/
|
||||||
private $maniaControl = null;
|
private $maniaControl = null;
|
||||||
private $updateManialink = false;
|
private $updateManialink = false;
|
||||||
private $manialink = null;
|
private $manialink = null;
|
||||||
@ -220,8 +223,7 @@ class KarmaPlugin implements CallbackListener, Plugin {
|
|||||||
if ($chatCallback[1][3]) {
|
if ($chatCallback[1][3]) {
|
||||||
$message = substr($message, 1);
|
$message = substr($message, 1);
|
||||||
}
|
}
|
||||||
$firstChar = substr($message, 0, 1);
|
if (preg_match('/[^+-]/', $message)) {
|
||||||
if ($firstChar !== '+' && $firstChar !== '-') {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$vote = substr_count($message, '+');
|
$vote = substr_count($message, '+');
|
||||||
|
Loading…
Reference in New Issue
Block a user