mIRC Home    About    Download    Register    News    Help

Print Thread
IGNORING #190174 17/11/07 06:15 AM
Joined: Nov 2007
Posts: 6
D
davla Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Nov 2007
Posts: 6
DEAR ALL,

I would like to ignore some part of join/left from channel messages. I don't want to turn off all.

Here is example.

I have channel with 100 users then a lot of people joing and lefting from the channel. Ok that is nice but i want to filter some part of that people. For example i want to filter only male and just to left females on the channel :-) then i can see very fast who joing on the channel.

i try to use /ignore command but that is fine just to ignore messages on the channel but that is not enouf for ignoring CTPT messages.


PLEASE HELP

Re: IGNORING [Re: davla] #190177 17/11/07 09:21 AM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
How would mirc know if it's a male or a female using it? it's not like mirc see the people behind the keyboard.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: IGNORING [Re: sparta] #190187 17/11/07 02:18 PM
Joined: Nov 2007
Posts: 6
D
davla Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Nov 2007
Posts: 6
because i will do ignoring each person who joining on the channel ;-))

i just option for /ignore ALL (to ignore also information messages who join/left from the channel).


any help on this?

Re: IGNORING [Re: davla] #190242 18/11/07 06:27 AM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
i was bored... :P

Here's a small little dialog to add/delete/save users to ignore to list. What it does is it matches users in the list if so then the part and JOIN is totally ignored of those users.

You will never notice the users coming in or out of the channel if they are in your list. MAKE SURE TO (SAVE) in order for it to work.

MAKE SURE TO CHANGE #YOURCHANNEL IN THE SCRIPT TO YOUR CHANNEL ELSE IT WONT WORK

Syntax: /jpar

Code:
dialog jpar {
  title "JOIN PARSE"
  size -1 -1 63 74
  option dbu
  list 1, 1 1 61 58, size vsbar
  button "Add", 2, 2 60 17 12, flat
  button "Delete", 3, 21 60 20 12, flat
  button "Save", 4, 43 60 18 12, flat
}

alias jpar {
  if ($exists(jpar.txt)) { dialog -m jpar jpar }
  else { .write jpar.txt r | dialog -m jpar jpar | .timer 1 3 /did -r jpar 1 }
}


on *:dialog:jpar:*:*:{
  if ($devent == INIT) {
    var %x = 1 
    while (%x <= $lines(jpar.txt)) {
      did -a $dname 1 $read(jpar.txt,%x)
      inc %x
    }
  }
  elseif ($devent == sclick) {
    if ($did == 2) { did -a $dname 1 $$?="Name:?" }
    elseif ($did == 3) { did -d $dname 1 $did($dname,1).sel }
    elseif ($did == 4) {
      .remove jpar.txt
      var %f = 1
      while (%f <= $did($dname,1).lines) {
        .write jpar.txt $did($dname,1,%f) $crlf
        inc %f
      }
    }
  }
}

on ^*:JOIN:#YourChannel:{
  if ($read(jpar.txt,w,$+(*,$nick,*))) { halt }
  else { return }
}

on ^*:PART:#YourChannel:{
  if ($read(jpar.txt,w,$+(*,$nick,*))) { halt }
  else { return }
}


smile :P Cheers


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Re: IGNORING [Re: Lpfix5] #190301 18/11/07 10:23 PM
Joined: Nov 2007
Posts: 6
D
davla Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Nov 2007
Posts: 6
Thanks for Replay!!!!

Can you please explain me how to use this code?

I copy/paste into one file example.txt and then try to load into scripts editor but nothing happend.

Please just few words about that how to use.

THANKS AGAIN!!!

Re: IGNORING [Re: Lpfix5] #190303 18/11/07 10:53 PM
Joined: Jul 2006
Posts: 3,559
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,559
Originally Posted By: Lpfix5
var %x = 1
while (%x <= $lines(jpar.txt)) {
did -a $dname 1 $read(jpar.txt,%x)
inc %x
}
and
Originally Posted By: Lpfix

var %f = 1
while (%f <= $did($dname,1).lines) {
.write jpar.txt $did($dname,1,%f) $crlf
inc %f
}

You can use :
Code:
loadbuf -o $dname 1 jpar.txt 
and
Code:
savebuf -o $dname 1 jpar.txt

Last edited by Wims; 18/11/07 10:55 PM.

Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: IGNORING [Re: Wims] #190304 18/11/07 11:01 PM
Joined: Nov 2007
Posts: 6
D
davla Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Nov 2007
Posts: 6
yes Wims but can you please explain step by step.

What i do.
Copy this code

Quote:

dialog jpar {
title "JOIN PARSE"
size -1 -1 63 74
option dbu
list 1, 1 1 61 58, size vsbar
button "Add", 2, 2 60 17 12, flat
button "Delete", 3, 21 60 20 12, flat
button "Save", 4, 43 60 18 12, flat
}

alias jpar {
if ($exists(jpar.txt)) { dialog -m jpar jpar }
else { .write jpar.txt r | dialog -m jpar jpar | .timer 1 3 /did -r jpar 1 }
}

on *:dialog:jpar:*:*:{
if ($devent == INIT) {
var %x = 1
while (%x <= $lines(jpar.txt)) {
did -a $dname 1 $read(jpar.txt,%x)
inc %x
}
}
elseif ($devent == sclick) {
if ($did == 2) { did -a $dname 1 $$?="Name:?" }
elseif ($did == 3) { did -d $dname 1 $did($dname,1).sel }
elseif ($did == 4) {
.remove jpar.txt
var %f = 1
while (%f <= $did($dname,1).lines) {
.write jpar.txt $did($dname,1,%f) $crlf
inc %f
}
}
}
}

on ^*:JOIN:#tinejdzeri:{
if ($read(jpar.txt,w,$+(*,$nick,*))) { halt }
else { return }
}

on ^*:PART:#tinejdzeri:{
if ($read(jpar.txt,w,$+(*,$nick,*))) { halt }
else { return }
}


then paste into some file like jpar.txt

After that i open MIRC and with
tools >> Scripts editor

I just load that file but nothing happend.

What i missing?

Last edited by davla; 18/11/07 11:06 PM.
Re: IGNORING [Re: davla] #190307 18/11/07 11:28 PM
Joined: Jul 2006
Posts: 3,559
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,559
In the mirc script editor (alt + r), paste this in a new remote file (file > new) :

Code:
dialog jpar {
title "JOIN PARSE"
size -1 -1 63 74
option dbu
list 1, 1 1 61 58, size vsbar
button "Add", 2, 2 60 17 12, flat
button "Delete", 3, 21 60 20 12, flat
button "Save", 4, 43 60 18 12, flat ok cancel
}

alias jpar dialog $iif($dialog(jpar),-v,-m) jpar jpar
on *:dialog:jpar:*:*:{
if ($devent == INIT) loadbuf -o $dname 1 jpar.txt 
elseif ($devent == sclick) {
if ($did isin 23) did $iif($did == 2,-a,-d) $dname 1 $iif($did == 2,$$?="Name:?",$$iif($did(1).sel,$v1))
elseif ($did == 4) savebuf -o $dname 1 jpar.txt
 }
}
on ^*:JOIN:#channel:if ($read(jpar.txt,w,$+(*,$nick,*))) haltdef
on ^*:PART:#channel:if ($read(jpar.txt,w,$+(*,$nick,*))) haltdef
then just type in any windows /jpar to configure it

Last edited by Wims; 18/11/07 11:32 PM.

Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: IGNORING [Re: Wims] #190310 18/11/07 11:40 PM
Joined: Nov 2007
Posts: 6
D
davla Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Nov 2007
Posts: 6
ok thanks it WORKSS Now!!!

But can you tell me how to stop also
other system messages?

and also now i must do first IGNORE (because i want to ignore also normal channel messages from that user)

then /jpar to add user in ignore list for JOIN/LEFT from the channels...

that is two times....it is ok but complicated if i want to put 2000 users on that list ;-)


is there any chance to do IGNORE only one for all from that user????

Re: IGNORING [Re: davla] #190315 19/11/07 12:20 AM
Joined: Jul 2006
Posts: 3,559
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,559
Originally Posted By: davla
But can you tell me how to stop also
other system messages?
You should read the help file before asking here :
/help halting default text
/help /ignore




Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: IGNORING [Re: Wims] #190325 19/11/07 04:55 AM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
If you noticed the original script when i wrote /jpar was the syntax that would of allowed you to have the script working,

But yeah to halt all from a special use then /ignore $nick


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Re: IGNORING [Re: Lpfix5] #190330 19/11/07 08:14 AM
Joined: Nov 2007
Posts: 6
D
davla Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
D
Joined: Nov 2007
Posts: 6
ok ok thanks for all of this.This is good enouf for me.

Someone in future need to write some advance Ignore option. ;-)


Re: IGNORING [Re: Lpfix5] #190350 19/11/07 03:10 PM
Joined: Jul 2006
Posts: 3,559
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,559
Originally Posted By: Lpfix5
If you noticed the original script when i wrote /jpar was the syntax that would of allowed you to have the script working,


I'm not sure that I understand what you mean because your alias /jpar and mine do exactly the same thing, i've just re-wrote it better (better in my point of view)


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: IGNORING [Re: davla] #190351 19/11/07 03:41 PM
Joined: Aug 2005
Posts: 1,052
L
Lpfix5 Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Originally Posted By: davla
Thanks for Replay!!!!

Can you please explain me how to use this code?

I copy/paste into one file example.txt and then try to load into scripts editor but nothing happend.

Please just few words about that how to use.

THANKS AGAIN!!!


I was talking to him about this area. I told him Syntax: was /jpar


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }