mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2004
Posts: 4
L
Self-satisified door
OP Offline
Self-satisified door
L
Joined: Nov 2004
Posts: 4
Help, i tried everything and mIRC strips out all but the last one space of a line

eg when i sockwrite Hello world
i get back: Hello world

and when i sockwrite Hello $chr(32) $chr(32) $chr(32) wold
i get back the message with all spaces striped out.

i need the char 32 and not 160 or any similar

i tried sockwrite -tn
also i tried sockwrite $crlf and any other common way, but nothing seems to work.

mad frown frown

is there ANY way to send the server that char repeated ?

Note: for ASCII art throu socket

Joined: Nov 2004
Posts: 4
L
Self-satisified door
OP Offline
Self-satisified door
L
Joined: Nov 2004
Posts: 4
Well.. the forum seems to get them striped out also

eg Hello ____________________ Wold
i get back Hello word

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Use binary variables.

Code:
alias bsockwrite {
  bset &buffer 1 $$2-
  sockwrite $1 &buffer
}


/bsockwrite <socket name> <ascii value> [ascii value] [etc]

eg. /bsockwrite asciiart 104 101 108 108 111 32 32 32 32 32 32 32 32 32 32 119 111 114 108 100

This will send "hello__________world" through the "asciiart" socket.


New username: hixxy

Link Copied to Clipboard