with the help of a code posted by "sevens" in another topic in this forum i finally got the !list command working for the xdcc server (witch is not possible by default in invision i think).
but the problem i have is, it now always responds to the !list command, even when the xdcc server is turned off.
i wonder if there is any possibility to build in some kind of switch, so that it only responds to that command when the xdcc server is active.
the code by "sevens" is:
on *:TEXT:*:*:{
if ($1 == !list) {
//notice $nick $c(1) $chr(91) $+ $c(2) $+ XDCC Server Active $+ $c(1) $+ $chr(93) $+ $c(2) - $c(1) $+ $xdcc.ad.packs $xdcc.ad.sends $xdcc.ad.queues $xdcc.ad.snagged $xdcc.ad.bw $xdcc.ad.record.cps $c(1) $+ Trigger:« $+ $c(2) $+ /ctcp $me XDCC List $+ $c(1) $+ »
}
}
can anyone help me?
what has to be added to the code if i want it only to respond when it's active?