mIRC Homepage
Posted By: barosanyu Me need help +pm | +notice - 03/03/07 05:06 PM
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!
Posted By: DuXxXieJ Re: Me need help +pm | +notice - 03/03/07 06:34 PM
Normaly when i make a ON *:INPUT:*:#:{ thing, i don't use if ($2
but if ($1-

normaly that work at mine
Posted By: Riamus2 Re: Me need help +pm | +notice - 03/03/07 07:58 PM
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.
Posted By: hixxy Re: Me need help +pm | +notice - 03/03/07 08:06 PM
unignore isn't a command. You have to use the -r switch with /ignore.

To ignore private messages: /ignore -p *!*@*
To unignore: /ignore -pr *!*@*
Posted By: barosanyu Re: Me need help +pm | +notice - 03/03/07 09:35 PM
it worked!!!, but the version and finger are not working. frown
Posted By: CtrlAltDel Re: Me need help +pm | +notice - 03/03/07 11:36 PM
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
© mIRC Discussion Forums