napa182 commented on a Page, channel sayer for bots  -  Aug 08, 2007

also you have !Sayrooms as a wildcard also you had a ( mixed up for a {

on *:TEXT:!Sayrooms:*:{
  if ($chan(0) == 1) { 
    /notice $nick I am in  $+ $chan(0) $+  channel 
  }
  else { /notice $nick 0I am in  $+ $chan(0) $+  channels 
    /notice $nick 0They are:
    set %x 0
    :next
    inc %x
    set %chans $chan(%x)
    if (%chans == $null) { goto end }
    elseif ($me isop %chans) { /notice $nick 12@ $+ %chans | goto next }  
    elseif ($me isop %chans) && ($me isvoice %chans) { /notice $nick 12@3+ $+ %chans | goto next }
    elseif ($me isop %chans) && ($me isvoice %chans) && ($isuser($me,%chans)) { /notice $nick 12@3+10- $+ %chans | goto next }
    elseif ($me isop %chans) && ($isuser($me,%chans)) { /notice $nick 12@10- $+ %chans | goto next }
    elseif ($me ishop %chans) { /notice $nick 7% $+ %chans | goto next }
    elseif ($me ishop %chans) && ($me isvoice %chans) { /notice $nick 7%3+ $+ %chans | goto next }
    elseif ($me isvoice %chans) { /notice $nick 9+ $+ %chans | goto next }
    elseif ($me isvoice %chans) && ($isuser($me,$chans)) { /notice $nick 9+10- $+ %chans | goto next }
    elseif ($isuser($me,%chans)) { /notice $nick 010- $+ %chans | goto next }
    else { /notice 0$nick %chans | goto next }
    :end
    halt
  }
}
 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.