I agree, I've run into this problem as well, and it would be great if there was a way around this behaviour of (especially) /return.

However, I'd much rather see some kind of command prefix that prevents double consecutive spaces from being stripped off, for any command.. That would solve this problem, and more.

I suggest the ^ character, e.g.
Code:
  ^return %returnvalue
because of the close relation to "halting default text", although I can already hardly wait for some people to post that they already use ^commands in their scripts. grin Anyway, it could also be a command on itself, instead of a prefix.

The idea is then that if this prefix is present, the parameters would still be tokenized, but all double consecutive spaces minus one (as well as all leading/trailing spaces) would be made part of the next parameter (or previous one, if there are no more) instead of being stripped off. This is clean, simple to use and backwards compatible, and it should be fairly easy to implement..

Additionally, I'd like $rawmsg to work for every event that uses $1- (especially "on INPUT"), instead of just for events triggered by text from IRC servers, but that's another story.

Last edited by Sat; 03/07/05 10:59 AM.

Saturn, QuakeNet staff