Work around for MQChat Title

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

MacroFiend
a grimling bloodguard
a grimling bloodguard
Posts: 662
Joined: Mon Jul 28, 2003 2:47 am

Work around for MQChat Title

Post by MacroFiend » Thu Nov 06, 2003 10:21 am

For some reason, the SaveChatToIni is getting called twice. The first time, it saves the chat title fine, the second it changes it to 0. Below is a work around so that if it tries to save it with "0" as the title, it will skip it. This isn't a permanent fix (because it shouldn't be saving it twice ;)) but it will at least keep the title you set.

Code: Select all

	WritePrivateProfileString(szChatINISection,"Locked",	itoa(pWindow->Locked,			szTemp,10),gszINIMQchat);

	GetCXStr(pWindow->WindowText,szTemp);[color=red]
	if (strcmp(szTemp,"0")) {[/color]
		WritePrivateProfileString(szChatINISection,"WindowTitle",	szTemp				  ,gszINIMQchat);[color=red]
	}[/color]
	WritePrivateProfileString(szChatINISection,"Fades",	itoa(pWindow->Fades,			szTemp,10),gszINIMQchat);

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Thu Nov 06, 2003 10:22 am

I was wondering about that. I'll see what I can do
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0