mIRC Home    About    Download    Register    News    Help

Print Thread
#132974 16/10/05 04:54 AM
Joined: Jan 2004
Posts: 133
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jan 2004
Posts: 133

anyway to get hadd
to add everything on one line ?

/hadd -m add-stuff $nick %addnow

makes ..

nick
addnow-stuff

i kinda need it all one one line

nick addnow-stuff

help ?

#132975 16/10/05 07:30 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
In the case of /hadd -m add-stuff $nick %addnow

$nick is the name of the item in the hashtable and %addnow well be the contents of that item.
What do u mean by showing them on two lines im not sure?

If your meaning when you do a /HSAVE you get
nick
addnow-stuff

WELL you could do this

/hadd -m add-stuff $nick $nick %addnow
/hsave -n add-stuff add-stuff.txt

But you have to remember that there is now and extra word on the start of the $hget(add-stuff,nick) being the nick (itemname) again

OR you could do this

/hadd -m add-stuff $nick %addnow
/hsave -i add-stuff add-stuff.txt

And now you get add-stuff.txt looking like
[hashtable]
nick=addnow-stuff
nick2=addnow-stuff2
nick3=addnow-stuff3
etc etc

Might not be quite what you want, but its close.

#132976 16/10/05 02:09 PM
Joined: Jan 2004
Posts: 133
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jan 2004
Posts: 133
thanks dave ..

yea .. that may work ..


Link Copied to Clipboard