mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2003
Posts: 426
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Apr 2003
Posts: 426
I haven't really mucked around with this much, but I am wondering how I would go around echoing text (from say, a notice) so that it would stay within the network windows that it was sent from?

For instance, say I have server1, with channel1 open. I want all notices/msgs etc, to echo only within that server ID, and not any other server window set.
Does that make sense?

Joined: Aug 2003
Posts: 325
W
Fjord artisan
Offline
Fjord artisan
W
Joined: Aug 2003
Posts: 325
ie...
Server irc1.irc1.irc
#room1, #room2, #room3

Server irc2.irc2.irc
#room4, #room5, #room6

Everything on server 1 to echo to all windows on server 1, or to only echo to the rooms that the person is on, or... (?)

What you are asking is going to require using $cid and $activeid

ie..
Code:
if ($cid == $activeid) { echo -a $nick :: $1- }
if ($cid != $activeid) { commands but not echoing to active window }

You should get the idea from that.
cool

Joined: Apr 2003
Posts: 426
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Apr 2003
Posts: 426
Yeah, something like what you've got there.
I understand how I would need to get it to work with $activecid, however, what happens if I want something from a non active cid (but a connected one, none-the-less) to echo within its cid windows?

ie,
Active CID
server irc1.irc.net
channel1,channel2


Non active CID, with a notice from user JOE
server irc2.irc.net
channel1,channel2


I want the notice from joe, to appear in the non active CID windows...
As it stands, I don't think /echo would do this.
This is my dillema.. :S


Oh nevermind, I just found /scid and /scon

*EDIT*
Bah. Damn this. I guess I'm just going to have to wait until Khaled implements smart echos. If ever.

Last edited by neophyte; 13/05/04 12:39 PM.
Joined: Dec 2002
Posts: 230
G
Fjord artisan
Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
Quote:
I want the notice from joe, to appear in the non active CID windows...
As it stands, I don't think /echo would do this.

You're wrong... mIRC will display it in the correct server window...

Joined: Aug 2003
Posts: 325
W
Fjord artisan
Offline
Fjord artisan
W
Joined: Aug 2003
Posts: 325
Which windows exactly though? Status window? All windows on that server?

Status window only: echo $color(notice).dd -ts $+(-,$nick,-) $1-
All windows: var %wins = $window(*,0) | while (%wins) { if (@* !iswm $window(*,%wins)) { echo $color(notice).dd -t $+(-,$nick,-) $1- | dec %wins }

All channel windows: var %wins = $chan(0) | while (%wins) { echo $color(notice).dd -t $chan(%wins) $+(-,$nick,-) $1- | dec %wins }

etc.
You might also check your options because that lets you decide where notices go by default.

Joined: Apr 2003
Posts: 426
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Apr 2003
Posts: 426
Not if you've got custom notice scripts.


Link Copied to Clipboard