mIRC Home    About    Download    Register    News    Help

Print Thread
-psyBNC queries #41160 11/08/03 07:45 PM
Joined: Aug 2003
Posts: 7
A
aM0xACiLLiN Offline OP
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

Re: -psyBNC queries #41161 11/08/03 10:40 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
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.
Re: -psyBNC queries #41162 12/08/03 05:53 PM
Joined: Aug 2003
Posts: 7
A
aM0xACiLLiN Offline OP
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?

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

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

Re: -psyBNC queries #41165 12/08/03 09:43 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
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.

Re: -psyBNC queries #41166 12/08/03 10:01 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
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,.) }
Re: -psyBNC queries #41167 12/08/03 10:07 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
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.

Re: -psyBNC queries #41168 12/08/03 10:09 PM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline
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
Re: -psyBNC queries #41169 13/08/03 06:34 AM
Joined: Aug 2003
Posts: 7
A
aM0xACiLLiN Offline OP
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.. =/

Re: -psyBNC queries #41170 13/08/03 01:07 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
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.

Re: -psyBNC queries #41171 13/08/03 01:59 PM
Joined: Aug 2003
Posts: 7
A
aM0xACiLLiN Offline OP
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..

Re: -psyBNC queries #41172 13/08/03 02:14 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
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.

Re: -psyBNC queries #41173 13/08/03 03:44 PM
Joined: Aug 2003
Posts: 7
A
aM0xACiLLiN Offline OP
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?