mIRC Home    About    Download    Register    News    Help

Print Thread
#46918 03/09/03 06:06 PM
Joined: Aug 2003
Posts: 3
T
Self-satisified door
OP Offline
Self-satisified door
T
Joined: Aug 2003
Posts: 3
Hi

when ever you do /command it seems that the paramters are tokenized, which removes the spaces. This is a bit unfortunate when dealing with commands like /say /msg /notice /raw /topic etc, where you sometimes would like to have multiple whitespaces following eachother.

/The_Real

Joined: Jan 2003
Posts: 249
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
This has been discussed over and over, you better use the Search Feature to get them all, and have a good reading.

Joined: Sep 2003
Posts: 3
M
Self-satisified door
Offline
Self-satisified door
M
Joined: Sep 2003
Posts: 3
I just searched and found _1_ thread that dealt with this particular issue. Im sorry but I did not bother to check more than the first few pages of results to my various queries.

Only it simply refered to searching as well....

Regardles of there being 1 or a million posts on the topic it is very clearly a bug. If you are unsure, I suggest you take a look at RFC 1459, and you will understand that MSG takes not a random number of arguments, but exactly 2, and that a : prepended to the last parameter will treat anything after as ONE parameter, regardles of spaces.

I fully understand that mIRC may rely on a simple way of tokenizing whatever input it receives in order to deal with commands, but it is still a bug, if this way of dealing with it results in mIRC handling a standard command like msg wrong.

If I do MSG guy mIRC is this | | bugged, I don't want mIRC to change the meaning! smile

Yes I know I can use colours or formatting codes, but this is known as a workarround, and should only be a temporary precaution while Khaled fixes the BUG.

Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
It doesn't handle msg wrong. Delete your script and you will see that mIRC is quite capable of parsing incoming text that contains multiple spaces. The fact is, mIRC _scripting_ (which is not mentioned in RFC1459) is what lacks the ability to do what you suggest.

Joined: Sep 2003
Posts: 3
M
Self-satisified door
Offline
Self-satisified door
M
Joined: Sep 2003
Posts: 3
Let's get our stuff straight.

I'm running a clean installation of mIRC, and I'm simply typing /msg someone something with spaces.

I am not using any scripts.

I know it handles incomming messages correctly, but that has nothing to do with the point.

It also has a fine calculator and I also think it has a channel list. But that too is irelevant, so let's stick to the point.

The point being.
I can start telnet and message my friend somethign with spaces.

I can't do this with mIRC unless I first open a window with him and then type in that window. Ie. I can't just use the /msg command.

Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Well, please show me where RFC1459 mentions /msg? It doesn't. The reason is, /msg is an mIRC command, not an IRC command. If mIRC wanted, it could have decided that /msg will only allow text starting with the letter 'h' and it wouldn't be breaking anything mentioned in RFC1459.

Joined: Sep 2003
Posts: 3
M
Self-satisified door
Offline
Self-satisified door
M
Joined: Sep 2003
Posts: 3
Right.

No point in arguing.

From what you are saying, mIRC, probably the most widely used IRC client, does not support the most basic IRC command.

Whatever. This is my last post on this topic.

Joined: Dec 2002
Posts: 29
N
Ameglian cow
Offline
Ameglian cow
N
Joined: Dec 2002
Posts: 29
/msg is not a basic IRC command, it is a basic mIRC command which may also be adopted by other clients.

mIRC has the limitation that multiple spaces are lost when sent through a /command, thats the way it is and probably the way it will remain

Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
The RFC1459 makes NO mention on what a client must allow the user to do. I don't know where you're getting this from. I agree mIRC should support multiple spaces, however, it is not a protocol violation that it doesn't. If you want to disagree, that's your choice, but I've read RFC1459 upwards of 500 times, I'm very familiar with what it says and doesn't say.

Joined: Sep 2003
Posts: 9
J
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
J
Joined: Sep 2003
Posts: 9
i've had the same problem... i wanted to filter text with on *:TEXT: etc... displaying chanserv messages for example... they do contain multiple spaces - $1, $2 etc return the tokenized words, but why doesnt $1- return the whole string including all multiple spaces in it? ;(


Link Copied to Clipboard