mIRC Home    About    Download    Register    News    Help

Print Thread
/remini empty topics #211881 03/05/09 04:51 PM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline OP
Hoopy frood
OP Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
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

Re: /remini empty topics [Re: Horstl] #211882 03/05/09 06:03 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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.

Re: /remini empty topics [Re: Horstl] #211883 03/05/09 06:42 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
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..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: /remini empty topics [Re: Horstl] #211892 04/05/09 02:33 AM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline OP
Hoopy frood
OP Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559