mIRC Homepage
Posted By: Tw33ty Hidden: Channelmode - 27/03/06 10:27 PM
Hi, is there a way to find out the modes of a channel even if ur not in the channel?

$chan(#CHANNEL1).mode doesn't work
Posted By: xDaeMoN Re: Hidden: Channelmode - 27/03/06 11:15 PM
afaik, there isn't.
Posted By: RusselB Re: Hidden: Channelmode - 28/03/06 12:00 AM
This is possible on some networks if you have IRCop status.
If you have that status, and your network supports it, then you should be able to get the proper command from a System Administrator. Other than that, xDaeMoN is correct in saying that there isn't.
Posted By: Brax Re: Hidden: Channelmode - 28/03/06 02:31 AM
You can use /mode #channel
and then process raw 324

Something like:
Code:
alias getmode {
  .enable #getmode
  mode $1
}

#getmode off
raw 324:*: {
  echo -abcflt info * Channel $2 modes: $3-
  halt
}

raw 329:*: { 
  .disable #getmode
  halt
}

#getmode end

untested
Posted By: Tw33ty Re: Hidden: Channelmode - 28/03/06 08:54 PM
Thank you Brax ... it works
So I'm just about to script sumth and dunno how to use ur script. Maybe u or any1 out there can tell me how to go on.
So this is what I got:
Code:
raw 319:*:{
  if ($3) { getmode $3 } if (r isin $5) { cs acc $3 $2  }
  if ($4) { getmode $4 } if (r isin $5) { cs acc $4 $2 } 
  if ($5) { getmode $5 } if (r isin $5) {  cs acc $5 $2 }
  if ($6) { getmode $6 } if (r isin $5) { cs acc $6 $2 }
  if ($7) { getmode $7 } if (r isin $5) { cs acc $7 $2 }
  if ($8) { getmode $8 } if (r isin $5) { cs acc $8 $2 }
  if ($9) { getmode $9 } if (r isin $5) { cs acc $9 $2 }
  if ($10) { getmode $10 } if (r isin $5) { cs acc $10 $2 }
}
  

The script is false as hell but it's about following effect:
As soon as I whois some1, I get the informations what kinda status the user has. First of all it's Importantly to find out if the channel is registered. So if the channel is registered { cs acc <channel> <user> } else { ignore the unregistered channel and go ahead to next channel }
Hope ya'll know what I mean.

That's all
© mIRC Discussion Forums