mIRC Home    About    Download    Register    News    Help

Print Thread
#174392 07/04/07 12:02 AM
Joined: Apr 2007
Posts: 4
B
Bejito Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Apr 2007
Posts: 4
Hi,

Many irc server use an acsii art on motd.

mIRC don't display motd correctly, he remove spaces. If I test witch an other irc client as BitchX it's ok and I can see ACSII art on Message Of The Day.

Joined: Jan 2007
Posts: 259
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
mIRC strips spaces (2 spaces = 1, 3 spaces = 1, etc) sadly, and you'll have to use the ascii character 160 (hard/solid space) or two CTRL + B codes (ascii character 2) for mIRC to keep it aligned.


Those who can, cannot. Those who cannot, can.
Joined: Apr 2007
Posts: 4
B
Bejito Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Apr 2007
Posts: 4
Yes on mIRC script we can use $chr(160) but ircd.motd use acsii spaces

Joined: Jan 2007
Posts: 259
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
You can replace the spaces in your ascii art with the $chr(160) spaces.


Those who can, cannot. Those who cannot, can.
Joined: Apr 2007
Posts: 4
B
Bejito Offline OP
Self-satisified door
OP Offline
Self-satisified door
B
Joined: Apr 2007
Posts: 4
i have try use 160 (dec) or A0 (hex) in my personal ircd.motd but i have the same problem ...

Joined: Jan 2007
Posts: 259
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
After testing, mIRC does not break ascii art:
Code:
Current Global Users: 1  Max: 1
-
Message of the Day, irc.localhost.com
-
- 7/4/2007 2:34
-                                      .__          
-   ____ ___  ________    _____ ______ |  |   ____  
- _/ __ \\  \/  /\__  \  /     \\____ \|  | _/ __ \ 
- \  ___/ >    <  / __ \|  Y Y  \  |_> >  |_\  ___/ 
-  \___  >__/\_ \(____  /__|_|  /   __/|____/\___  >
-      \/      \/     \/      \/|__|             \/ 
-
End of /MOTD command.



Those who can, cannot. Those who cannot, can.
Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
This sounds like a font issue.

Depends if the font you're using is monospaced.


What do you do at the end of the world? Are you busy? Will you save us?
Joined: Feb 2006
Posts: 65
F
Babel fish
Offline
Babel fish
F
Joined: Feb 2006
Posts: 65
or it can be a issue of a script, some scripts will handle motd and doing so will remove spaces


known on irc as MrStonedOne
read my full post before replying or dont reply. tl;dr isn't allowed here
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I would *strongly* recommend *not* using $chr(160) for spacing things like ASCII art. $chr(160) is *not* really a space -- or even a double space -- and not all fonts show it as a space. Various fonts will show it as something else and that will make the text look really messed up. There is absolutely no reason why you cannot use double control codes for spacing things out.

//echo -a This         is spaced

That's using Ctrl-B 2x between each space. You can also use other codes, such as Ctrl-U or Ctrl-R. You should always use groups of 2 unless you're certain it won't affect the output. For example, if there is an odd number of Ctrl-Bs, then the ending text will be bold instead of normal. But, if you know that there are the same number of control characters, you can do it with single ones...

//echo -a This         is spaced

That would be okay because there are 8 control characters, so it evens out.

Just remember that if you use Ctrl-O, you will remove all colors and other formatting. If you want it to all be the default text color, you can just use single Ctrl-Os between the spaces...

//echo -a This         is spaced

Doing it this way, you *can* have an odd number of control characters. I'd recommend starting all of the text with a Ctrl-O if you use Ctrl-Os, though... it will prevent issues if someone has a script that colors the MOTD text:

//echo -a This         is spaced

Anyhow, you can continue to use/suggest $chr(160) for spacing issues, but it really is a bad idea.

And, for those who don't want to do that (this won't work for MOTD), you can grab spaces.dll and that will take care of it for you.


Invision Support
#Invision on irc.irchighway.net
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
Indeed, to OP.. for anything that a script does not intercept and change the output for, the display depends entirely on the font being used in that window (ie status). For ascii text, make sure you are also using a fixedwidth text.

If there is a script that is messing with the motd, id personally suggest removing that part of it. Not sure why anybody would want to alter that, but i guess some mirc themes could have.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby

Link Copied to Clipboard