mIRC Home    About    Download    Register    News    Help

Print Thread
#180266 06/07/07 08:12 PM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Maybe something like /writeini -a<C> which will append data to an already existing item.

Example:

Quote:

[#Channel]
Users1=ChanServ,OperServ
Users2=ChanServ OperServ


/writeini -a44 Channels.ini #Channel Users1 Jigsy
/writeini -a32 Channels.ini #Channel Users2 Jigsy

Quote:

[#Channel]
Users1=ChanServ,OperServ,Jigsy
Users2=ChanServ OperServ Jigsy


The only current method of doing this is by re-adding the previous data along with the new data.

/writeini Channels.ini #Channel Users1 ChanServ,OperServ,Jigsy

Etc.


What do you do at the end of the world? Are you busy? Will you save us?
Jigsy #180275 07/07/07 02:03 AM
Joined: Jul 2006
Posts: 4,193
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,193
"The only current method of doing this is by re-adding the previous data along with the new data.

/writeini Channels.ini #Channel Users1 ChanServ,OperServ,Jigsy"

You're right, you need to overwrite the line with old and new data, what you want is like $addtok and i can't see why you don't use it here : //writeini channels.ini #channel users1 $addtok($readini(channels.ini,#channel,users1),Jigsy,C)

i don't say that writeini -a will not useful but in the case it will add in mirc, you should want all other command like /hadd /did /set /write do the same thing


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Jigsy #180976 16/07/07 03:21 AM
Joined: Nov 2004
Posts: 842
Jigsy Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Actually, it'd prolly be better if <C> was optional.

So:

/writeini -a Channels.ini #Channel Users1 Jigsy

Quote:

[#Channel]
Users1=ChanServ,OperServJigsy


So no form of "seperator" is used.


What do you do at the end of the world? Are you busy? Will you save us?

Link Copied to Clipboard