Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQ2Events doesn't "CleanItemtags" #3

Open
Redbot opened this issue Dec 3, 2020 · 1 comment
Open

MQ2Events doesn't "CleanItemtags" #3

Redbot opened this issue Dec 3, 2020 · 1 comment

Comments

@Redbot
Copy link

Redbot commented Dec 3, 2020

In GitLab by @jessebevil on Dec 2, 2020, 19:54

Issue template

- [] What - MQ2Events doesn't "CleanItemTags", so it won't correctly process events like trigger=You begin casting #1#

trigger=You begin casting #1#
command=/bc You begin casting ${EventArg1}
- [] When - Every time. 

Expected the issue is that OnIncomingChat doesn't "CleanItemTags" as seen in VOID CheckChatForEvent(PCHAR szMsg) line 721 in MQ2DataVars.cpp, which causes it to fail to output the name of the spell you begin casting. This will apply for all new outputs that include spells as links for MQ2Events.

Expect that a resolution would be to modify OnIncomingChat to CleanItemTags prior to pEventsEvent->Feed(szLine);

PLUGIN_API DWORD OnIncomingChat(PCHAR Line, DWORD Color)
{
	if (gbInZone && pEventsEvent)
	{
		CHAR szLine[MAX_STRING] = { 0 };
		strcpy_s(szLine, Line);
		if (DEBUGGING)
			WriteChatf("MQ2Events::OnIncomingChat: Feed '%s'", Line);
		pEventsEvent->Feed(szLine);
	}
	return 0;
}

wondering if this is intentional, or just happens to have been overlooked.

@Redbot
Copy link
Author

Redbot commented Dec 3, 2020

moved from redguides/VeryVanilla#91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant