mIRC Home    About    Download    Register    News    Help

Print Thread
aliases same as identifer($)? #104560 05/12/04 05:08 PM
Joined: Dec 2004
Posts: 5
T
toenie Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Dec 2004
Posts: 5
When I was chatting, and testing some $'s, I found a bug.

Example:
When you have this line in your aliases:
Code:
/think /say I'm thinking 


And you say in a chatroom:
Quote:
//echo -a $think


You will get an error ("* /echo: insufficient parameters") BUT it will activate the alias /think too.

Quote:
Quote:
<toenie> I'm thinking
* /echo: insufficient parameters


Greetings,

toenie

Last edited by toenie; 05/12/04 05:09 PM.

:: Toenie ::

Visit me @; irc.chattersweb.nl:6667/boomhutje
Re: aliases same as identifer($)? #104561 05/12/04 05:13 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
No bug.

$think isn't evaluated to anything, so mIRC tries to /echo a $null, which results, as it has always been, in * /echo: insufficient parameters.

Try this:

//echo -a $null
//echo -a $chr(32)

Greets


Gone.
Re: aliases same as identifer($)? #104562 05/12/04 05:20 PM
Joined: Dec 2004
Posts: 5
T
toenie Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Dec 2004
Posts: 5
I know, but it isn't only an error, it says "I'm Thinking" too.

Try:
Add this in your aliases:
/sometest /say aaaa, this is a test

And type in a chatroom:
//echo -a $sometest


:: Toenie ::

Visit me @; irc.chattersweb.nl:6667/boomhutje
Re: aliases same as identifer($)? #104563 05/12/04 06:10 PM
Joined: Aug 2003
Posts: 7
ailin Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
Joined: Aug 2003
Posts: 7
yes, there is no distinction between custom aliases and custom identifiers

Re: aliases same as identifer($)? #104564 05/12/04 07:14 PM
Joined: Dec 2004
Posts: 14
D
dJabba Offline
Pikka bird
Offline
Pikka bird
D
Joined: Dec 2004
Posts: 14
thats what the $isid identifier is for, to check what its called like cool


- dJabba
Re: aliases same as identifer($)? #104565 05/12/04 08:52 PM
Joined: Oct 2003
Posts: 214
S
Sephiroth_ Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 214
It works as it should smile

Try this:
Code:
alias think {
  if ($isid) return I'm thinking
  else say I'm thinking
}


one step closer to world domination
Re: aliases same as identifer($)? #104566 06/12/04 07:16 PM
Joined: May 2004
Posts: 7
J
jinkx Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
J
Joined: May 2004
Posts: 7
you're obviously new to scripting wink

an alias called by $ will execute all the commands in an alias
the $ prefix is used incase you want to use evaluate something in a different alias and return something

hence why the first reply used $isid and the /return prefix

the BEST help file i've ever seen is the one written for mIRC
if you want to script i HIGHLY recommend you read it
and play with it
it was the best 3 hours i spent.
it dosnt take very long to read it
in your case i suggest you start with /help aliases

it explains the $ prefix, also how exactly aliases work

Re: aliases same as identifer($)? #104567 07/12/04 03:43 PM
Joined: Dec 2004
Posts: 5
T
toenie Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Dec 2004
Posts: 5
Quote:
you're obviously new to scripting wink

No, I am scripting a year of 2.

Quote:
an alias called by $ will execute all the commands in an alias
the $ prefix is used incase you want to use evaluate something in a different alias and return something

hence why the first reply used $isid and the /return prefix

Okay, thanks

Quote:
the BEST help file i've ever seen is the one written for mIRC
if you want to script i HIGHLY recommend you read it.

I agree smile

Quote:
and play with it
it was the best 3 hours i spent.
it dosnt take very long to read it
in your case i suggest you start with /help aliases

it explains the $ prefix, also how exactly aliases work


Sorry, I hasn't read the $ prefix help wink

(My English isn't my best language, but I am learning it grin )


:: Toenie ::

Visit me @; irc.chattersweb.nl:6667/boomhutje