mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2003
Posts: 342
M
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Apr 2003
Posts: 342
mIRC seems to assume that any unhandled command is meant for the server, and sends it off to the server. If it's a bad command or missing alias or something, you will either get an "Unknown Command" response from the server, or "not connected" error message if not connected.

Rather I'd have these unhandled commands treated as an error. If you want to send a unhandled command to the server, a specific command (i.e. /type maybe or is that already taken) must proceed the line.

Example: Suppose I wanted to send the command '/nickserv' to the server... i would use...

Code:
/type /nickserv <text>


Of course not everyone would like this. So, allow scripts to enable some sort of "explicit" mode that treats unhandled commands as errors.

Last edited by MeStinkBAD; 21/04/07 03:28 PM.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
mIRC cannot know all possible commands on all possible IRC networks. That is why it will try to send all commands through the network. That should not be changed.


Invision Support
#Invision on irc.irchighway.net
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
If an alias is missing from a script surely it would be picked up in bug testing? Users shouldn't be getting errors from the server or mIRC so if there's a chance an alias won't exist for any reason why not check it with $isalias()?


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
As far as '/type' is concerned, it seems you are forgetting about /quote. Although since i dont believe its documented you could also have been unaware.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
/raw is documented though (/quote is mentioned there too, although help implies that it only works in other clients).


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
Your right, i only did a quick check with /help /quote as i posted. I generally use quote, but given the -q flag for raw i suppose that is actually more useful.


"Allen is having a small problem and needs help adjusting his attitude" - Flutterby
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
-q works in /quote too, but in any case, since you can silence both /raw and /quote with the usual dot prefix, it's a legacy thing (it's older than the dot).


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Apr 2003
Posts: 342
M
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Apr 2003
Posts: 342
I know about /quote and /raw...

What I am refering to is errors caused by typos... for example...

Code:
* /]: not connected to server (line 601, loadme.mrc)


The error is being caused by a typo. Offline this error is easy to detect. Online, it would be a little more difficult to track down.

I just have a problem with mIRC sending unhandeled commands to a connected server, rather than treating them as errors. Of course this would be an option declared by the script. It doesn't matter no one understands anyhow.


Beware of MeStinkBAD! He knows more than he actually does!
Joined: Dec 2002
Posts: 580
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 580
I understand what you're saying... When the server returns a bad command error, it can't give you a script or line number. So, it's much harder to find the bug.

A better solution might be to not send unknown commands to the server IF they exist in a script, since /raw can be used for this, and instead generate the error. Or at least an option like the one that creates errors for unknown identifers. Unknown commands typed in a windows's editbox would still send these unknown commands to the server.


NaquadaBomb
www.mirc-dll.com
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Quote:
I know about /quote and /raw...
Then what was all that stuff about /type in your first post?

Quote:
It doesn't matter no one understands anyhow.
I don't know how you figure that, but you could do without such comments, they only leave a negative impression.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Link Copied to Clipboard