View Single Post
  #8  
Old 01-16-2014, 05:14 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

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.
Reply With Quote