mIRC Home    About    Download    Register    News    Help

Print Thread
/remini won't remove empty sections #211890 04/05/09 02:25 AM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline OP
Hoopy frood
OP Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
If the section doesn't contain any item, /remini <inifile> <section> isn't removing the specified section from the file.
(v6.35 on WinXP, original thread/example code )

Thanks smile

Re: /remini won't remove empty sections [Re: Horstl] #212054 09/05/09 05:46 AM
Joined: Dec 2002
Posts: 86
Zmodem Offline
Babel fish
Offline
Babel fish
Joined: Dec 2002
Posts: 86
Confirmed here: mIRC 6.35 + WinXP SP3

A workaround for now:

Code:
alias _remini {
   :1
   .remini $1-
   if (!$3-) {
      if ($ini($1,$2)) { .writeini $1 $2 . . | goto 1 }
   }
}


-Zmodem