mIRC Home    About    Download    Register    News    Help

Print Thread
#589 09/12/02 12:48 PM
Joined: Dec 2002
Posts: 209
V
Fjord artisan
OP Offline
Fjord artisan
V
Joined: Dec 2002
Posts: 209
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!

#590 09/12/02 04:05 PM
W
wshs
wshs
W
$ignore(x).network returns the name of the network it is active on.

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

#592 09/12/02 07:30 PM
S
Sartan
Sartan
S
why not $ignore(0).network

#593 09/12/02 07:43 PM
C
chanserv
chanserv
C
That would still list all ignores on all networks

#594 09/12/02 07:52 PM
C
chanserv
chanserv
C
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
}


Link Copied to Clipboard