All pastes #78200 Raw Edit

Darkghost help pleas

public text v1 · immutable
·published 2006-07-03 21:54 UTC
rendered paste body
;hi darkghost, I'm trying to make this script work. What I mean by that is, if (*c* iswmcs $chan($chan).mode) {
;I have no Idea where to put it so it removes the color when the channels are +c.
;the gmsg is a global message =p
;please fix lol

alias exemptchans {
  ;LIST ALL CHANNELS YOU DO NOT WANT TO AMSG TO ON
  ;THE LINE BELOW, SEPARATED BY SPACES.
  ;DO NOT DELETE 'return'.
  return #shockserv #shockserv-staff
  ;DO NOT EDIT ANYTHING BELOW THIS LINE
  ;UNLESS YOU KNOW WHAT YOU'RE DOING.
}
alias gmsg {
  var %channum = $chan(0)
  var %chanlist
  if ($chan(%channum) !isin $exemptchans) {
    %chanlist = %chanlist $+ $chan(%channum)
    echo $chan(%channum) < $+ $me $+ > $1-
  }

  %channum = %channum - 1
  while (%channum != 0) {
    if ($chan(%channum) !isin $exemptchans) {
      %chanlist = %chanlist $+ , $+ $chan(%channum)
      echo $chan(%channum) < $+ $me $+ > $1-
    }
    %channum = %channum - 1
  }
  .quote PRIVMSG %chanlist : $+ $1-
}

on *:TEXT:*:#:{ 
  if ( $1 == @Gmsg ) { /gmsg 7,1G10,1lobal Message from $nick $+ : $2- }
}