mIRC Home    About    Download    Register    News    Help

Print Thread
#29998 16/06/03 04:24 AM
Joined: Mar 2003
Posts: 36
B
bugx Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Mar 2003
Posts: 36
I want to write in a file X with "writeini" the topic for X
chan, the topic have colors but "writeini" erase this

Is like a $strip

( i know than write works fine with colors, i think
the writeini have a bug )

writeini test.ini test $chan($chan).topic

in a raw put a set %test $3- (for the topic)

writeini test.ini test %test

#29999 16/06/03 10:17 AM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
writeini test.ini test $replace( $chan($chan).topic, $chr(3) , THISISACOLORCODE )
$replace( $readini(test.ini,test) , THISISACOLORCODE , $chr(3) )

And the problem is with windows, as mIRC uses window's functions to write & read ini's, and windows has a perverted fetish of stripping control codes, or something...


Code:
//if ( khaled isgod ) echo yes | else echo no
#30000 17/06/03 01:49 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Related post.

- Raccoon
(300)


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#30001 17/06/03 03:52 AM
Joined: Mar 2003
Posts: 36
B
bugx Offline OP
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Mar 2003
Posts: 36
yep.. i use your code and works very fine

i hope than resolve the bug in next version, because
in the help not say nothing from that

thankx laugh


Link Copied to Clipboard