mIRC Home    About    Download    Register    News    Help

Print Thread
#145774 27/03/06 10:27 PM
Joined: Mar 2006
Posts: 50
T
Tw33ty Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Mar 2006
Posts: 50
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

#145775 27/03/06 11:15 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
afaik, there isn't.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#145776 28/03/06 12:00 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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.

#145777 28/03/06 02:31 AM
Joined: Jan 2005
Posts: 192
Vogon poet
Offline
Vogon poet
Joined: Jan 2005
Posts: 192
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


echo -a $signature
#145778 28/03/06 08:54 PM
Joined: Mar 2006
Posts: 50
T
Tw33ty Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Mar 2006
Posts: 50
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


Link Copied to Clipboard