Altered Amsg/Ame

By PurplesurgeMirc on Mar 20, 2009

Since amsgs are against the rules in #mIRC on Purplesurge, I have made an altered amsg alias that doesn't play in that channel.

Author: Rolo @ #mIRC on Purplesurge
Edit: Changed goto loop to while loop - Apocalypse

alias amsg {
  if ($network == PurpleSurge) {
    var %x 1
    while (%x <= $chan(0)) {
      if ($chan(%x) != #mIRC) msg $chan(%x) $1-
      inc %x
    }
  }
  else !amsg $1-
}

alias ame {
  if ($network == PurpleSurge) {
    var %x 1
    while (%x <= $chan(0)) {
      if ($chan(%x) != #mIRC) describe $chan(%x) $1-
      inc %x
    }
  }
  else !ame $1-
}

Comments

Sign in to comment.
alch3my   -  Mar 20, 2009

Or you can change it to allow for more channels being added using a variable
Which I'm sure you're already aware of, but incase someone wants it..

Channels get added to the %skip variable.

if (!$istok($chan(%x),%skip,32)) {

 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.