mIRC Home    About    Download    Register    News    Help

Print Thread
#77158 29/03/04 03:52 PM
Joined: Mar 2004
Posts: 36
N
Nodren Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Mar 2004
Posts: 36
ive noticed this bug only recently but generally if i wanted to make an away command, i can call it /away, and call the mIRC /away command from with inside my own doctored up /away command, however if i want to make my own /away command work over all networks im connected on, inside my /away command i want the /aways(that go to mIRC) to work globably, so when i do a /scon -a away [messsage] it causes mIRC to make an infinate loop i have to ctrl+b where it executes my own /away command and not the mIRC one.

its definately not to do with the script im working on, its mearly that im having /scon -a execute a command that has two instances, one in my own script, one in mIRC... any chance this can be fixed? smirk

#77159 29/03/04 11:03 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
If I'm understanding you correctly the situation is basically this:
alias away {
scon -a away
}


The problem is that while using alias away { away } mIRC will automatically 'detect' that the command is being called inside an alias of the same name and so use the built-in command, the way that /scon and /scid work prevents this from happening, so mIRC doesn't 'know' that it shouldn't use the alias. This causes infinite recursion, hence the problem. All you've got to do to fix this is use scon -a !away - the ! explicitly tells mIRC not to use an alias for the command.


Spelling mistakes, grammatical errors, and stupid comments are intentional.

Link Copied to Clipboard