mIRC Home    About    Download    Register    News    Help

Print Thread
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
Joined: Feb 2004
Posts: 2,019
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.
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
Joined: Aug 2003
Posts: 7
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
Joined: Aug 2003
Posts: 7
yes, there is no distinction between custom aliases and custom identifiers

Joined: Dec 2004
Posts: 14
D
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
Joined: Oct 2003
Posts: 214
S
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
Joined: May 2004
Posts: 7
J
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

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

Link Copied to Clipboard