Okay! Was asked to look into this and I did.
I use the following test script in my global_player.pl successfully:
Code:
sub EVENT_SAY
{
if ($text =~/^Vote Kick$/i)
{
$client->Message(7, "Syntax: Vote Kick <name>");
}
if ($text =~/^Vote Kick /i)
{
$client->Message(0, "Vote kick: $text");
}
if ($status > 0)
{
if ($text =~/^#Vote Kick$/i)
{
$client->Message(7, "Syntax: #Vote Kick <name> <reason>");
}
if ($text =~/^#Vote Kick /i)
{
$client->Message(0, "Vote kick start: $text");
}
}
return 1;
}
I made a minor change to the source to reverse how the "command not found" message is displayed via return to make it play better between multiple scripts. It doesn't actually do anything if displayed though and you can remove it by returning 1 from the command handler if it's found with latest git master.