mIRC Home    About    Download    Register    News    Help

Topic Options
#190174 - 17/11/07 06:15 AM IGNORING
davla Offline
Nutrimatic drinks dispenser

Registered: 17/11/07
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

Top
#190177 - 17/11/07 09:21 AM Re: IGNORING [Re: davla]
sparta Offline
Planetary brain

Registered: 22/02/03
Posts: 3432
Loc: Sweden/Borlänge
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,.) }

Top
#190187 - 17/11/07 02:18 PM Re: IGNORING [Re: sparta]
davla Offline
Nutrimatic drinks dispenser

Registered: 17/11/07
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?

Top
#190242 - 18/11/07 06:27 AM Re: IGNORING [Re: davla]
Lpfix5 Offline
Hoopy frood

Registered: 10/08/05
Posts: 1052
Loc: Canada
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* }

Top
#190301 - 18/11/07 10:23 PM Re: IGNORING [Re: Lpfix5]
davla Offline
Nutrimatic drinks dispenser

Registered: 17/11/07
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!!!

Top
#190303 - 18/11/07 10:53 PM Re: IGNORING [Re: Lpfix5]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3515
Loc: France
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


Edited by Wims (18/11/07 10:55 PM)
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#190304 - 18/11/07 11:01 PM Re: IGNORING [Re: Wims]
davla Offline
Nutrimatic drinks dispenser

Registered: 17/11/07
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?


Edited by davla (18/11/07 11:06 PM)

Top
#190307 - 18/11/07 11:28 PM Re: IGNORING [Re: davla]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3515
Loc: France
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


Edited by Wims (18/11/07 11:32 PM)
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#190310 - 18/11/07 11:40 PM Re: IGNORING [Re: Wims]
davla Offline
Nutrimatic drinks dispenser

Registered: 17/11/07
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????

Top
#190315 - 19/11/07 12:20 AM Re: IGNORING [Re: davla]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3515
Loc: France
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

Top
#190325 - 19/11/07 04:55 AM Re: IGNORING [Re: Wims]
Lpfix5 Offline
Hoopy frood

Registered: 10/08/05
Posts: 1052
Loc: Canada
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* }

Top
#190330 - 19/11/07 08:14 AM Re: IGNORING [Re: Lpfix5]
davla Offline
Nutrimatic drinks dispenser

Registered: 17/11/07
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. ;-)


Top
#190350 - 19/11/07 03:10 PM Re: IGNORING [Re: Lpfix5]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3515
Loc: France
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

Top
#190351 - 19/11/07 03:41 PM Re: IGNORING [Re: davla]
Lpfix5 Offline
Hoopy frood

Registered: 10/08/05
Posts: 1052
Loc: Canada
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* }

Top