mIRC Home    About    Download    Register    News    Help

Print Thread
#56334 20/10/03 03:41 PM
Joined: Oct 2003
Posts: 3
G
GedXaZ Offline OP
Self-satisified door
OP Offline
Self-satisified door
G
Joined: Oct 2003
Posts: 3
Hi, I don't know if this has been already posted but there it is:
(I tried it on 6.1x versions)
Code:
rem {
HEY_MUM! echo -a Hello World!
}


This alias in your ALT+A will work! (It must be exactly as shown in code) Even the first word "HEY_MUM!" (you can use any word) is not a command, it just reads from the 2nd word. Also in Scripts Editor it shows that there is a bracket mis-match.
BUT...

rem { echo -a Hello World! }

...AND...

/rem { echo -a Hello World! }

...OR...

/rem {
echo -a Hello World!
}


...works fine.
so WTF?

CHECK IT: http://www.freewebs.com/bioirc/example.gif
(open in a new browser window smile)

Last edited by GedXaZ; 20/10/03 04:12 PM.
#56335 20/10/03 03:44 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
What's the bug? I get "[16:44:25] HEY_MUM! is an unknown command".

#56336 20/10/03 03:58 PM
Joined: Oct 2003
Posts: 3
G
GedXaZ Offline OP
Self-satisified door
OP Offline
Self-satisified door
G
Joined: Oct 2003
Posts: 3
what version are you using? :\

#56337 20/10/03 04:10 PM
Joined: Dec 2002
Posts: 62
Babel fish
Offline
Babel fish
Joined: Dec 2002
Posts: 62
where's the bug?

aliasname {
command
}

when /aliasname is used, the command is run, in your case, it runs /HEY_MUM! , which is an unknown command, unless of course if you have another alias HEY_MUM! somewhere.

if you were trying to greet someone in the channel, it should be:

Code:

rem {
say HEY_MUM!
echo -a Hello World!
} 

#56338 20/10/03 04:16 PM
Joined: Oct 2003
Posts: 3
G
GedXaZ Offline OP
Self-satisified door
OP Offline
Self-satisified door
G
Joined: Oct 2003
Posts: 3
Hey! I know scripting! mad
Whatever.. on my pc it still stays as a BUG!

It means that if you use REM instead /REM and will write code in not 1 LINE you'll get error.

#56339 20/10/03 04:18 PM
Joined: Oct 2003
Posts: 53
W
Babel fish
Offline
Babel fish
W
Joined: Oct 2003
Posts: 53
lol it's a bug alright .. but not with mIRC or your pc. wink

#56340 20/10/03 04:27 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Yeah mIRC ignores the lines beginning with "Rem" - treats it as a ;comment

#56341 20/10/03 09:08 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Whoa, batch file commenting? Wierd >:P


-KingTomato
#56342 21/10/03 06:52 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Batch, Basic, VBScript, prolly others.. smile


Link Copied to Clipboard