quote:
Originally posted by CookieRevised
[topic2]
key21=yep th&is is topic number 2
key22=and mambo number f&ive
<=
You are right about the ] checking, it is a very inelegant way to handle that. As soon as this exam-heated week goes away I'll code filters and correct this as well. (although if you look in the file, you'll find no messages with ] in them. After all this program was written for Messenger Plus!, not for generic INI files
)
But newline checking was not used for nothing: for example look at this
InsertSpecialTag=Insert &Special Tag
CurrentTime=Current &Time\t(!T)
CurrentDate=Current &Date\t(!D)
MyName=My &Name\t(!NP)
MyEmail=My &E-mail\t(!MP)
ContactNames=&Contact Name(s)\t(!N)
ContactEmails=C&ontact Email(s)\t(!M)
CustomContactNames=C&ustom Contact Name(s)\t(!CN)
CurrentIP=Current &IP\t(!IP)
SoftwareVersion=Software &Version\t(!VER)
PluginsVersion=Plugins Ve&rsion\t(!PVER)
Winamp=&Winamp Song Title\t(!WAT)
InsertFormatTag=Insert &Format Tag
BoldText=B&old Text\t(!FB)
ItalicText=&Italic Text\t(!FI)
UnderlinedText=&Underlined Text\t(!FU)
StrikedoutText=&Struck-out Text\t(!FS)
TextColor=Text &Color\t(!FC)
TextBckColor=Text &Background Color\t(!FG)
ResetFormat=&Reset Format\t(!FR)
(extract from DefaultLg, section IMWindowMenu)
These are in the same section, although the ampersands do not collide (the two menus are not displayed at the same time). Until filters are set up i found newline checking as an alternate solution to stop (at least reduce) false collisions.