mIRC Home    About    Download    Register    News    Help

Print Thread
#167536 26/12/06 03:09 AM
Joined: Oct 2005
Posts: 10
D
DooDaa Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Oct 2005
Posts: 10
Hi, I want to create a script in my Aliases that will allow me to simply type something like /ignore [NICK] and it will ignore the user at the IP level so they will always be on ignore regardless of what nick they may change to, and it will also announce in the channel that person has been placed on ignore. I know how to do the announcement part of it in the channel, but I am not sure of what the command should be to accomplish the specific ignore outcome I am looking for. Can someone help me with this please? Thanks to all who are able to help me with this.


°»Ðöö·Ðää«°
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Since you want to use an alias with the same name as an internal command, when you call the command you have to prefix the command with an !
The general format for the alias would be
Code:
/ignore { /!ignore $1 <mask> }


You'll have to look up which mask you want to use. They are listed under /help $mask

Joined: Dec 2006
Posts: 3
A
Self-satisified door
Offline
Self-satisified door
A
Joined: Dec 2006
Posts: 3
possibly this could work... just enter /ignore nick and /ignore -r nick to clear it

Code:
ignore { 
  if ($1 === -r) { /!ignore -r $address($1,1) }
  else { /!ignore $address($1,1) | notice $nick You have been Ignored. }
}

Joined: Oct 2005
Posts: 10
D
DooDaa Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Oct 2005
Posts: 10
The help file shows as follows for $mask;

The available types are:

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

So, because I want to ignore at the IP level, would that then mean the command would be written as;


/ignore { /!ignore $1,2 } ???

Sorry, i haven't scripted in such a long time. I have lost touch with some of this stuff. Thanks again for your kind assistance.


°»Ðöö·Ðää«°
Joined: Aug 2006
Posts: 60
S
Babel fish
Offline
Babel fish
S
Joined: Aug 2006
Posts: 60
ROFL

Add to aliases file:

/ignore !ignore $$1 2

Then, type /ignore nick to ignore nick's IP

Joined: Oct 2005
Posts: 10
D
DooDaa Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Oct 2005
Posts: 10
What if i changed the typed command to /iggy [NICK]?
Would the command still need the !ignore part of it, or could it then be shortened to /ignore $$1 2 being as the typed command is changed from /ignore to /iggy


°»Ðöö·Ðää«°
Joined: Oct 2005
Posts: 10
D
DooDaa Offline OP
Pikka bird
OP Offline
Pikka bird
D
Joined: Oct 2005
Posts: 10
Nevermind! I decided to try it without the !ignore and it seems to be working perfectly. Thanks for all your help guys. smile


°»Ðöö·Ðää«°

Link Copied to Clipboard