mIRC Home    About    Download    Register    News    Help

Print Thread
#33943 03/07/03 11:42 PM
Joined: Dec 2002
Posts: 60
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2002
Posts: 60
is there anyway to stop amsg sending to a specific channel?

#33944 03/07/03 11:46 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
no.


new username: tidy_trax
#33945 03/07/03 11:47 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
lol that was the shortest reply I've ever seen on a message board. grin

#33946 03/07/03 11:48 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
no need to extend it any further grin


new username: tidy_trax
#33947 03/07/03 11:58 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Heh, I kind of gathered that. grin

#33948 04/07/03 12:04 AM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
It's possible... but this smells like SPAM...


Code:
//if ( khaled isgod ) echo yes | else echo no
#33949 04/07/03 12:14 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
You can't stop /amsg from doing it, however you could write your own script to do it.

Code:
alias aemsg {
  var %i = 1, %j = 1, %chans
  if ($left($1,1) != $chr(35)) {
    amsg $1-
    return
  }
  while ($chan(%i)) {
    if ($istok($1,$chan(%i),44)) {
      inc %i
      continue
    }
    %chans = $addtok(%chans,$chan(%i),44)
    if (%j == 5) {
      .msg %chans $2-
      %chans = $null
      %j = 1
    }
    else inc %j
    inc %i
  }
  if (%chans) .msg %chans $2-
}


Syntax is:
/aemsg #chan1,#chan2 the message here
This will send to all channels you are on except #chan1 and #chan2.
Or:
/aemsg the message here
In this case it works like /amsg.

Just a note, due to the way mIRC works, when you use /aemsg it will _not_ show the text you typed in the channel window. The script could be modified to make it display on your screen as well, but I really didn't feel like doing it. Also this script trys to get around the "target change too fast" issue by only sending to 5 channels per command. If you still get that error change the (%j == 5) to a lower number.


Link Copied to Clipboard