mIRC Homepage
Posted By: Horstl /remini empty topics - 03/05/09 04:51 PM
Code:
alias remini.test {
  ; works: there's an item in the topic... 
  writeini test.ini topic item data
  ; ...so remini removes the topic
  remini test.ini topic
  echo -ag removing a topic that contained at least one item - topic is $iif(!$ini(test.ini,topic),gone,still there)

  ; however if for some reason there's no item in the topic...
  writeini test.ini topic item data
  remini test.ini topic item
  ; ...remini will not remove the topic
  remini test.ini topic
  echo -ag removing a topic that didn't contain any item - topic is $iif(!$ini(test.ini,topic),gone,still there)
}

removing a topic that contained at least one item - topic is gone
removing a topic that didn't contain any item - topic is still there

Having done a quick search, I didn't find a related post. I didn't put this in the bug reports as yet as I'm not sure whether it's one, or by design.
Please confirm the bug - or explain the cause. smile
Posted By: RusselB Re: /remini empty topics - 03/05/09 06:03 PM
Behaviour confirmed, and I would suspect that this is a bug, as I can't think of any reason why one would wish this type of behaviour to be wanted.
Posted By: sparta Re: /remini empty topics - 03/05/09 06:42 PM
been struggle with that before, the only way i found was to use write to remove a empty topic. Or add something to the topic if it's empty, then remove it..
Posted By: Horstl Re: /remini empty topics - 04/05/09 02:33 AM
Ok, I forwarded it as bug report.
© mIRC Discussion Forums