mIRC Home    About    Download    Register    News    Help

Print Thread
#240219 06/01/13 04:31 PM
Joined: Jul 2008
Posts: 57
R
RiMaJoy Offline OP
Babel fish
OP Offline
Babel fish
R
Joined: Jul 2008
Posts: 57
I need some help about IGNORE

In mirc standard ignore command in popupmenu is:
Code:
.ignore:/ignore $$1 1

This results in the following being added to the ignore list:
Code:
*!*partnickname@bla1.bla2.bla3.bla4


A day later i need to set another ignore on the same nick.
And a few day later again and so on and so on.
After some research i noticed this:
Besides the nickname the only thing that was the same as the first ignore is the first part(bla1) and sometimes also the second part(bla2) after the @ in the hostmask of the nickname.
Besides the 1 in the ignore command u also can use the numbers 2, 3 and 4.
This however doesn't solve my problem of putting the same nick on ignore over and over again.
Is there a way to let the result in the ignorelist look like this:
Code:
*!*@bla1.*.*.*


This because the first part after the @ is the only steady given thing.
If i'm not mistaken and if this is possilble this way i will only have to set the ignore once for person.
I want this mostly for people talking about incest and child porn.

RiMaJoy #240227 08/01/13 02:34 AM
Joined: Jun 2009
Posts: 96
V
Babel fish
Offline
Babel fish
V
Joined: Jun 2009
Posts: 96
the following masks (with number infront of them, which you put in for either ignore or ban) are supported by mirc

0 *!user@host.domain
1 *!*user@host.domain
2 *!*@host.domain
3 *!*user@*.domain
4 *!*@*.domain
5 nick!user@host.domain
6 nick!*user@host.domain
7 nick!*@host.domain
8 nick!*user@*.domain
9 nick!*@*.domain

so for example
type 2 would do ignore/ban on *!*@mirc.com
type 4 would do ignore/ban on *!*@*.com
type 9 would do ignore/ban on vinifera!*@*.com

unfortunately, your's wish is not on the list smirk
I think custom ignore control should be made for you then
which would i guess read specific masks

sorry for not be able to help you, just wanted to clarify mask types for you :P

Last edited by vinifera; 08/01/13 02:43 AM.
RiMaJoy #240229 08/01/13 10:29 AM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
What you can do is to use: //ignore

Or you can use $gettok() to get the part of the host you want to use.

//ignore $+($gettok(*!*@bla1.host.com,1,46),.*.*.*)

I dont think this is the best way, but maybe work for you.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #240299 19/01/13 12:51 PM
Joined: Jul 2008
Posts: 57
R
RiMaJoy Offline OP
Babel fish
OP Offline
Babel fish
R
Joined: Jul 2008
Posts: 57
Hi sparta i have been trying to get your code to work but i'm not getting there.

In your code i replaced bla1 with $address but that doesn't seem to work there.
i made an alias for ignore trying to set a var for the part i need from the host part thinking that $address might not work in a direct command.

All that is added to the ignorelist is:
*!*@.*.*.*

As you can see nothing is added on the first part.
i have been reading and reading but i can't find what i'm looking for.
What do i need to to get the bla1

RiMaJoy #240301 19/01/13 06:12 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Add this to your nick list. (popups for nicklist).

testing:{ echo -a $+($gettok($address($1,3),1,46),.*.*.*) }

It should display the host in the format.
*!*ident@*.*.*.*

if it looks ok for you, remove the echo -a part, and change it to ignore.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #240304 19/01/13 07:18 PM
Joined: Jul 2008
Posts: 57
R
RiMaJoy Offline OP
Babel fish
OP Offline
Babel fish
R
Joined: Jul 2008
Posts: 57
That did it.
I did try:

$+($gettok($address($1,3),1,46),.*.*.*)

without the the red part.
What is the function of having the red part there?

RiMaJoy #240305 19/01/13 07:37 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
it does the same as " $+ text $+ ".

From the help file:
;------------------------------------------
/silly /say Hel $+ lo th $+ ere $+ !

Parameters are normally separated by a space. To make mIRC combine parameters you can use the $+ identifier. The above line will say Hello there!.
;------------------------------------------
and it working the same way as $+(Hel,lo th,ere,!) so , just tell mirc it should combine the word or signs.

And you can use it in a variable you set. %var return hello and you want a "dot" after the word hello, then you can do $+(%var,.) Hope you understand what it does.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #240318 20/01/13 08:41 PM
Joined: Jul 2008
Posts: 57
R
RiMaJoy Offline OP
Babel fish
OP Offline
Babel fish
R
Joined: Jul 2008
Posts: 57
THANKS smile


Link Copied to Clipboard