Seb icon

AMSG Channel Exempt

Seb | PRO | 05/20/10 08:47:44 PM UTC | 0 ⭐ | 1653 👁️ | Never ⏰ | []
mIRC |

840 B

|

None

|

0 👍

/

0 👎

alias amsg {
  /*
  Make sure you are connected to a server and 
  that the command isn't used as an identifier
  */
  if ($server) {
    if (!$isid) {
      ; Get the total amount of channels you are in on this server
      var %x = $comchan($me,0)
 
      /*
      List of all unwanted amsg channels:
      You can add other channels if you want,
      has to be separated by a space
      */
      var %y = #cservice #Fatalzone
 
      ; Loop through them
      while (%x) {
        ; If the channel in this iteration is not one of those in the $istok, msg the input
        if (!$istok(%y, $comchan($me,%x), 32)) {
          msg $comchan($me, %x) $1-
        }
        dec %x
      }
    } 
    else echo $color(info) -a * /amsg: Improper usage; Command Only!
  }
  else echo $color(info) -a * /amsg: not connected to server
}

Comments