mIRC Home    About    Download    Register    News    Help

Print Thread
Me need help +pm | +notice #171994 03/03/07 05:06 PM
Joined: Mar 2007
Posts: 2
B
barosanyu Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
B
Joined: Mar 2007
Posts: 2
Im new here... im a newbie i need a script for my mIRC
here's the situation

if i type +pm it will ignore the PM
if i type -pm it will unignore the PM
if i type +notice it will ignore the "notice"
if i type -notice it will unignore the "notice"
if i type +dcc it will ignore DCC
if i type -dcc it will unignore DCC
if i type +version it will ignore CTCP Version
if i type -version it will unignore ctcp version
if i type +finger it will ignnore the Finger version reply
if i type -finger it will unignore it.

i tried to do it with this but i had lots of errors

on 1:input:#:{
if ( $2 == +pm ) { if ($chr(35) isin $strip($3-)) { .ignore -p *!*@* } | else { .ignore -p *!*@* } }
if ( $2 == -pm ) { if ($chr(35) isin $strip($3-)) { .unignore -p *!*@* } | else { .unignore -p *!*@* } }
if ( $2 == +notice ) { if ($chr(35) isin $strip($3-)) { .ignore -n *!*@* } | else { .ignore -n *!*@* } }
if ( $2 == -notice ) { if ($chr(35) isin $strip($3-)) { .unignore -n *!*@* } | else { .unignore -n *!*@* } }
if ( $2 == +dcc ) { if ($chr(35) isin $strip($3-)) { .ignore -d *!*@* } | else { .ignore -d *!*@* } }
if ( $2 == -dcc ) { if ($chr(35) isin $strip($3-)) { .unignore -d *!*@* } | else { .unignore -d *!*@* } }
if ( $2 == +version ) { if ($chr(35) isin $strip($3-)) { .ignore -t *!*@* } | else { .ignore -t *!*@* } }
if ( $2 == -version ) { if ($chr(35) isin $strip($3-)) { .unignore -t *!*@* } | else { .unignore -t *!*@* } }
if ( $2 == cinfo ) { if ($chr(35) isin $strip($3-)) { .msg x chaninfo $3- } | else { .msg x chaninfo $active } }
if ( $2 == +finger ) { if ($chr(35) isin $strip($3-)) { .ignore -f *!*@* } | else { .ignore -f *!*@*} }
if ( $2 == -finger ) { if ($chr(35) isin $strip($3-)) { .unignore -f *!*@* } | else { .unignore -f *!*@* } }


Thanx in advance...

whenever i type i get lots of error
thanx barosanu of ROMANIA!

Re: Me need help +pm | +notice [Re: barosanyu] #172001 03/03/07 06:34 PM
Joined: Jan 2007
Posts: 280
DuXxXieJ Offline
Fjord artisan
Offline
Fjord artisan
Joined: Jan 2007
Posts: 280
Normaly when i make a ON *:INPUT:*:#:{ thing, i don't use if ($2
but if ($1-

normaly that work at mine


Squee whenever a squee squee's. Squee whenever a squee does not squee.
Re: Me need help +pm | +notice [Re: DuXxXieJ] #172005 03/03/07 07:58 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
Yes, $1 is your first word. So if you just typed +pm name!*@*, it won't do anything with your current script because the second word ($2) isn't +pm.


Invision Support
#Invision on irc.irchighway.net
Re: Me need help +pm | +notice [Re: barosanyu] #172007 03/03/07 08:06 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
unignore isn't a command. You have to use the -r switch with /ignore.

To ignore private messages: /ignore -p *!*@*
To unignore: /ignore -pr *!*@*

Re: Me need help +pm | +notice [Re: hixxy] #172011 03/03/07 09:35 PM
Joined: Mar 2007
Posts: 2
B
barosanyu Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
B
Joined: Mar 2007
Posts: 2
it worked!!!, but the version and finger are not working. frown

Re: Me need help +pm | +notice [Re: barosanyu] #172015 03/03/07 11:36 PM
Joined: Jun 2003
Posts: 994
C
CtrlAltDel Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
Quote:
p = private, c = channel, n = notice, t = ctcp, i = invite, k = control codes, d = dccs


there is no -f flag for ignore (finger is ctcp)

ignore -t *!*@* should ignore all ctcp's including version


I refuse to engage in a battle of wits with an unarmed person. wink