simple /amsg alias

Paste Your small code(s) here, ex. small aliases, identifiers

simple /amsg alias

Postby vodkaplayer » Tue Oct 14, 2008 11:45 am

/amsg your message

write there the channels that you won't to amsg
Code: Select all
alias -l exclude.chans {
  return #help.script #help #feds
}

alias amsg {
  if (!$comchan($me,0)) { * /amsg error: I'm not on any channels... | return }
  if (!$1) { * /amsg error: no text to send | return }
  else {
    var %i = 1, %msg
    while ($comchan($me,%i)) {
      var %c = $v1
      if ($istok($exclude.chans,%c,32)) { echo 4 %c excluded amsg from %c }
      elseif ($network === QuakeNet) && (T isincs $chan(%c).mode) { echo 4 %c anti amsg mode is set on %c (+T) }
      else { msg %c $iif(c isincs $chan(%c).mode,$strip($1-),$1-) | inc %msg }
      inc %i
    }
    echo 4 -a /amsg: sent to %msg channels on $comchan($me,0) total channels.
  }
}
vodkaplayer
 

Return to Mirc Scripting Snippets

Who is online

Users browsing this forum: No registered users and 2 guests

cron