mIRC Homepage
Posted By: junx spaces with $1- - 27/05/03 12:58 AM
When I..
* junx changes topic to 'hjh9 jkhk'

Do you see the spaces?

raw 332:* { echo -a * Topic is ' $+ $3- $+ ' | haltdef }

* Topic is 'hjh9 jkhk'

Now how do I get the $3- identifier (or whatever) to show ALL spaces?
Posted By: Online Re: spaces with $1- - 27/05/03 01:50 AM
Code:
raw 332:*: echo $2 * Topic is: $replace($chan($2).topic,$chr(32),$chr(160)) | halt

That's the only way I know.
Posted By: junx Re: spaces with $1- - 28/05/03 11:18 PM
ahhh
i just seen something..
it didnt show all of the spaces when i changed the topic..
Posted By: junx Re: spaces with $1- - 28/05/03 11:20 PM
what i ment was when i $3- it will only show one space between the words when there are many... it didnt show it right when i posted it..
Posted By: Online Re: spaces with $1- - 29/05/03 05:03 AM
Yes, I know what you mean. The board strips spaces too.

As you can see, the only way to retrieve the correct number of spaces, is by using the internal identifier $chan(#channel).topic, because $3- of the raw event has already stripped the spaces.

You can also use that identifier in the on topic event, that occurs when someone changes the topic.
© mIRC Discussion Forums