mIRC Home    About    Download    Register    News    Help

Print Thread
#41160 11/08/03 07:45 PM
Joined: Aug 2003
Posts: 7
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Aug 2003
Posts: 7
Hi!
I think i found a bug.
When you're connected to psyBNC, it sends you the Messages from the host -psyBNC!psyBNC@lam3rz.de .. but if you use a script (for example a mts theme engine), mIRC displays all messages in the Status window. You can try it by simply typing //echo -psyBNC test .. maybe mIRC recognizes the "-" at the beginning of the Nickname as a parameter?
Thank you, aM0x

#41161 11/08/03 10:40 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
That would be a result of an error somewhere in the MTS theme or the MTS theme engine (I don't use MTS so I wouldn't know which). Whichever is calling the /echo that causes this should specify a switch to prevent it.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#41162 12/08/03 05:53 PM
Joined: Aug 2003
Posts: 7
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Aug 2003
Posts: 7
well i read the help file and i couldn't find a parameter that specifies that the following string is a nickname instead of a parameter.. so, how to prevent it?

#41163 12/08/03 06:53 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Try /echo -i0 -psyBNC text.

#41164 12/08/03 09:22 PM
Joined: Aug 2003
Posts: 7
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Aug 2003
Posts: 7
no sorry, doesn't works too..

#41165 12/08/03 09:43 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
What exactly are you trying to do? That line will echo "text" to the -psyBNC window.

#41166 12/08/03 10:01 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
i dont think you can use "-" in the code.. try use:

/echo -i0 $chr(45) $+ psyBNC text.

that code instead smirk


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#41167 12/08/03 10:07 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
That does exactly the same thing mine did, it echoes "-psyBNC text." to the active window if there isn't a window called -psyBNC open, and echoes "text." to the -psyBNC window if it is open.

#41168 12/08/03 10:09 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
try aline @-psyBNC TEXT ..... if it is a custom window without the @ infront of it that should work... but im not totally sure on what your doing please elaborate more


D3m0nnet.com
#41169 13/08/03 06:34 AM
Joined: Aug 2003
Posts: 7
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Aug 2003
Posts: 7
i tried /aline @-psyBNC text
* /aline: invalid window
and here i tried /aline -psyBNC text
* /aline: invalid window

the echo cmds posted don't work, too.
if i try /echo -i0 $chr(45) $+ psyBNC text
it writes in the active windows "-psyBNC text"
if i try //echo -i0 $chr(45) $+ psyBNC text
it parses as before and writes in the status window.. =/

#41170 13/08/03 01:07 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Well since you're not telling us what you want to echo and where you want to echo it to it is very hard to help.

#41171 13/08/03 01:59 PM
Joined: Aug 2003
Posts: 7
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Aug 2003
Posts: 7
my event doesn't looks like this but it works the same way:
on ^*:text:*:?:{
echo $nick ( $+ $nick $+ ) $1-
}
and this "theme" doesn't works with psybnc because it thinks the -psyBNC nick is a parameter..

#41172 13/08/03 02:14 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Well from that I guess you're trying to echo the text to the -psyBNC query window?

Type /query -psyBNC then go to any other window and type /echo -i0 -psyBNC hello. That will echo "hello" to the -psyBNC query window, if that isn't what you want then I give up, but it certainly isn't a bug.

#41173 13/08/03 03:44 PM
Joined: Aug 2003
Posts: 7
A
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: Aug 2003
Posts: 7
you're right, it isn't a bug, it only appears when my MTS theme engine is enabled. i have an alias called echo, which will parse your text.. here it is:
alias echo {
var %mts $read -w"ECHO *" %mtheme | var %mts $gettok(%mts,2-,32)
if ($left($asctime($timestampfmt),3) !isin $2-) {
if ($left(%mts,7) != !script) {
var %mts = $replace(%mts,<c1>,%::c1,<c2>,%::c2,<c3>,%::c3,<c4>,%::c4,<text>,$2-)
if (%::pre !isin %mts) { var %mts = $replace(%mts,<pre>,%pre) }
else { var %mts = $replace(%mts,<pre>,) }
echo $1 $iif(%mts.timestamp == ON,$asctime($timestampfmt),) %mts
}
else { set -un %:echo echo $2 | set -un %::text $2- | $gettok(%mts,2-,32) }
}
else { echo $1- }
}

how can i get this to work with the alias?


Link Copied to Clipboard