mIRC Home    About    Download    Register    News    Help

Print Thread
#151723 21/06/06 04:58 AM
Joined: Jan 2005
Posts: 55
R
rtg Offline OP
Babel fish
OP Offline
Babel fish
R
Joined: Jan 2005
Posts: 55
hello

I would like to ignore the nicknames that are ops and voices in every channel I am in every server

I basicaly enter certain rooms, so I would like this command to perfom as alias and not as an event, so it want consume system resources

can you help me please?

thank you

#151724 21/06/06 05:12 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I would not recommend this, as most ops that I know will kick/ban a person from the channel if the person doesn't respond to questions from the op. This being said, you use the following code (which is untested) at your own risk.
Code:
 alias ignoreop {
if $1 ischan {
var %a = 1, %b = $nick($1,0,a,r)
while %a <= %b {
ignore $nick($1,%a,a,r)
inc %a
}
}
}
 

Usage: /ignoreop <channel>
<channel> is NOT optional and must be a channel that you are on

#151725 21/06/06 08:02 AM
Joined: Jan 2005
Posts: 55
R
rtg Offline OP
Babel fish
OP Offline
Babel fish
R
Joined: Jan 2005
Posts: 55
thanks

it works flawlessly

is it possible to make it ignore voices too? moreover to ignore nickname*!*@* instead of nickname!*@* ?

thanks!

#151726 21/06/06 09:41 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The code I gave will ignore anyone that has voice, half-op, op, etc. Only those that are classified as regular users will not be ignored (read up on /help nick and address identifiers, specifically $nick(#,N/nick,aohvr,aohvr).

As to the other use the mask option (which would follow the $nick identifier in the ignore command) and use the type of mask you prefer. Reference /help $mask for options.
Alternatively, you can specify the address format that you want to use in place of the $nick identifier, but personally I would recommend using a mask rather than specifying the address.

#151727 23/06/06 12:20 AM
Joined: Jan 2005
Posts: 55
R
rtg Offline OP
Babel fish
OP Offline
Babel fish
R
Joined: Jan 2005
Posts: 55
thanks!

can you tell me please how the script will be in order to ignore the mask nickname*!*@* ?

thank you

#151728 23/06/06 12:40 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Replace $nick($1,%a,a,r) in the ignore command with $+($nick($1,%a,a,r),*!*@*)


Link Copied to Clipboard