mIRC Home    About    Download    Register    News    Help

Print Thread
#243066 12/10/13 03:48 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Hello,

I wanna to suggest an /ignore parameter that will remove the setted ignore from the list when the mIRC exit, same as /set -e

- Thanks!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jun 2003
Posts: 994
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
Why not use -u to remove them?

Quote:
The /ignore command
/ignore [-lrpcntikdwxu#] <on|off|nick/address> [type] [network]
Where p = private, c = channel, n = notice, t = ctcp, i = invite, k = control codes, d = dccs.
The -u# switch specifies a delay in seconds after which the ignore is automatically removed.


I refuse to engage in a battle of wits with an unarmed person. wink
Joined: Jul 2006
Posts: 4,141
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,141
Because -u doesn't achieve anything, he not going to calculate the time when he is going to exit mIRC, is he? he would be removing ignores in the on exit event, just like for /set, before -e was added, this suggestion is just fine.

Last edited by Wims; 13/10/13 02:54 PM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #243096 13/10/13 10:40 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Originally Posted By: Wims
Because -u doesn't achieve anything, he not going to calculate the time when he is going to exit mIRC, is he? he would be removing ignores in the on exit event, just like for /set, before -e was added, this suggestion is just fine.


That exactly Wims!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Wims #243108 14/10/13 04:21 PM
Joined: Jun 2003
Posts: 994
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
/me bows to superior intellect


I refuse to engage in a battle of wits with an unarmed person. wink
Joined: Feb 2009
Posts: 25
W
WKN Offline
Ameglian cow
Offline
Ameglian cow
W
Joined: Feb 2009
Posts: 25
Hi,

isnn't the on exit event in opposite to the on start event the right place to do some cleanups for mIRC?

You could do the /ignore -r for the users you want there.

BR
WKN

WKN #243404 16/11/13 01:38 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Really? OHH also this could be done and with the /set and with other -e commands.


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Oct 2009
Posts: 24
Ameglian cow
Offline
Ameglian cow
Joined: Oct 2009
Posts: 24
Using "/ignore -r" will clear the Ignore list.

Scakk #243481 23/11/13 09:57 PM
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
i don't want to clear the hole list but one that i have set with the -e parameter .


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
To clarify, westor wants to ignore users only for the duration of his mIRC session.

This would be pretty tough to script reliably. It's doable, but a switch would be pretty useful. I could see a general use case for this kind of thing, where you want to ignore someone "for a while but not forever".


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Oct 2012
Posts: 164
D
Vogon poet
Offline
Vogon poet
D
Joined: Oct 2012
Posts: 164
It's a good idea smile
Easy enough to script a workable alternative until (if) it gets added. Replace -e with -u99999999 to ignore them for 3+ years. laugh Ignores set with -u<N> are not (usually) written to file and are unset when mirc exits.
Code:
alias ignore {
  if -*e* iswm $1 && -*u* !iswm $1 { $+(!,$iif(!$show,.),ignore $1,u99999999) $2- }
  else $+(!,$iif(!$show,.),ignore) $1- 
}


Link Copied to Clipboard