I've been bashing my head against a brick wall with this all night and I still can't figure what I'm doing wrong.
The snippet is as follows:
menu status,channel {
Remove Highlight
.$submenu($HighlightWordList($1))
}
alias HighlightWordList {
var %HighlightWord.Total $ini($scriptdirHighlights.ini,0) | var %HighlightWord.Count 1
while (%HighlightWord.Count <= %HighlightWord.Total) {
if ($1 == %HighlightWord.Count) return $ini($scriptdirHighlights.ini,%HighlightWord.Count):remini $scriptdirHighlights.ini $ini($scriptdirHighlights.ini,%HighlightWord.Count)
inc %HighlightWord.Count
}
}
And an example of the Highlights.ini, that the snippet is working on, is here:
[Testing]
PartialMatch=OFF
[Help]
PartialMatch=OFF
[mIRC]
PartialMatch=OFF
For some reason, each menu item is being appended with "C" which I'm guessing is the drive letter but I have no idea how or why its getting in there.
Also, I can't get it to delete a topic. I managed to mess it up so that it wiped the Highlights.ini file completely (but I can't remember how I managed that particular level of #fail lol).
Please, can someone help me to figure this out? I'd really appreciate it
Thanks
Panda