/amsg controller

By xDaeMoN on Mar 30, 2005

This alias alters mIRC's /amsg command by sending your message to all channels except from specified ones. I think this would come i handy if you don't want to send your message to some of the channels you are on when doing an /amsg. If you don't enter a channel on the prompt, the mesage will be sent to all channels like the regular /amsg command. This was requested by Phantom so credits to him too.
Copy/paste to your aliases section. (ALT-D)

amsg {
  var %w = 1, %x = $?="Enter #Channel(s) separated with a space (Where you don't want your messages to be sent):"
  while $chan(%w) {
    if ( !$istok( %x, $v1, 32) ) msg $chan(%w) $1-
    inc %w
  }
} 

Comments

Sign in to comment.
xDaeMoN   -  May 11, 2011

@ D_J, there is no timer(s) on the snippet which would cause the delay. The delay could be from your mIRC or from the server. You may have an anti-flood protection enabled or so is the server.

 Respond  
D_J   -  May 11, 2011

I know this was posted a while back. For what I want its a good script, but, If I send a message with two lines, the second line is rather delayed. Im using it with xDaeMoN's mods. ANyone got any ideas why the delay & how to get around it? Thanks in advance

 Respond  
Smoke*bud   -  Jan 13, 2009
  • /while: close bracket not found (line 4, script195)
 Respond  
Tekniqal   -  Sep 04, 2007

Awesome thank you!

 Respond  
xDaeMoN   -  Sep 04, 2007

Change this part

%x = $?=\"Enter #Channel(s) separated with a space (Where you don\'t want your messages to be sent):\"

to

%x = #chan1 #chan2 #chan3

^^this way, it won\'t prompt you to enter the channels.

 Respond  
Tekniqal   -  Sep 04, 2007

I am having trouble using this alias to help make a timer. The alis seems to work fine, I type /amsg and I get a popup asking for the channel to exclude but I need a way to do:
/timer 0 28800 amsg Text!
and exclude channels that dont apply.

 Respond  
xDaeMoN   -  Jul 02, 2005

Yes, it works fine. Did you put this in your alias section?

 Respond  
HamstaHue   -  Jul 02, 2005

has anyone tested this?
when i use it, it just still does a normal amsg to all channels even when a channel is entered for it to exclude.

 Respond  
xDaeMoN   -  Apr 03, 2005

Nah, that\'s cool. Your\'s is a multi-server amsg & mine\'s just controls the /amsg to certain channels. =)

 Respond  
ReQueST   -  Apr 03, 2005

Sorry to make my post look like yours.. Didnt saw it earlier Sorry

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.