mIRC Home    About    Download    Register    News    Help

Print Thread
ignores #589 09/12/02 12:48 PM
Joined: Dec 2002
Posts: 212
V
vasil_michev Offline OP
Fjord artisan
OP Offline
Fjord artisan
V
Joined: Dec 2002
Posts: 212
fix $ignore and "isignore" behaviour
the second one is network specific, the first one is NOT
the second one is used in /ignore -l
so if a do a /ignore -l i see only the ignores for that specific network/server
well, there's no problem with that, but $ignore(0) will return a nonzero value even when /ignore -l gives empty list
here's an example:
on BGIRC:
* Added gfhgf!*@* to ignore list
-
* Ignore list:
gfhgf!*@* (pcntdik) - BGIRC

on other network:
-
* Ignore list empty
but on BOTH $ignore(0) returns 1
pls fix that!


And all I need now is intellectual intercourse, a soul to dig the hole much deeper
Re: ignores #590 09/12/02 04:05 PM
Joined: Dec 2002
Posts: 56
W
wshs Offline
Babel fish
Offline
Babel fish
W
Joined: Dec 2002
Posts: 56
$ignore(x).network returns the name of the network it is active on.


Acquire. Analyze. Adapt.
Re: ignores #591 09/12/02 05:23 PM
Joined: Dec 2002
Posts: 212
V
vasil_michev Offline OP
Fjord artisan
OP Offline
Fjord artisan
V
Joined: Dec 2002
Posts: 212
so what does this help?:)
the problem is that $ignore(0) will still return the number off ALL IGNORES ON ALL NETWORKS


And all I need now is intellectual intercourse, a soul to dig the hole much deeper
Re: ignores #592 09/12/02 07:30 PM
Joined: Dec 2002
Posts: 12
S
Sartan Offline
Pikka bird
Offline
Pikka bird
S
Joined: Dec 2002
Posts: 12
why not $ignore(0).network

Re: ignores #593 09/12/02 07:43 PM
Joined: Dec 2002
Posts: 14
chanserv Offline
Pikka bird
Offline
Pikka bird
Joined: Dec 2002
Posts: 14
That would still list all ignores on all networks

Re: ignores #594 09/12/02 07:52 PM
Joined: Dec 2002
Posts: 14
chanserv Offline
Pikka bird
Offline
Pikka bird
Joined: Dec 2002
Posts: 14
Well.. if you need one at the moment.. heres a quick remote alias.. just use it in the same way you would $ignore: $nsignore(id)

alias nsignore {
set %i 1 | set %c 0
while %i <= $ignore(0) {
if ($ignore(%i).network == $scon($cid).network) { inc %c }
if (%c == $1 && $1 != 0) { return $ignore(%i) | halt }
inc %i
}
if ($1 == 0) { return %c }
unset %i | unset %c
}