XDCC: Turn !list command off when server is down

General Help Questions and Answers

Moderators: L|B, cryoa, Riamus, XMog

XDCC: Turn !list command off when server is down

Postby njay » Fri May 13, 2005 8:39 am

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?
njay
Member
Member
 
Posts: 5
Joined: Wed May 11, 2005 8:09 am

XDCC

Postby Riamus » Fri May 13, 2005 10:10 am

You can find me at #Invision on irc.irchighway.net or #OldGames on irc.undernet.org if you need me for anything.
User avatar
Riamus
Global Moderator
Global Moderator
 
Posts: 1783
Joined: Fri May 03, 2002 9:01 pm
Location: Massachusetts, USA

Postby njay » Fri May 13, 2005 4:49 pm

njay
Member
Member
 
Posts: 5
Joined: Wed May 11, 2005 8:09 am

Postby Noel » Thu Aug 04, 2005 11:29 pm

Hi,
Exactly in that place should copy/paste this sentence?
Thanks
Noel
Member
Member
 
Posts: 6
Joined: Thu Aug 04, 2005 11:11 pm

Remotes

Postby Riamus » Fri Aug 05, 2005 6:28 am

Press Alt-R. Then go to File > New. Then insert that code and you're up and running.

Btw, you should use the modified version of this from the Developer's forum. Just look at the topic "some changes for Invision" (or something like that). It will be included within that thread.
You can find me at #Invision on irc.irchighway.net or #OldGames on irc.undernet.org if you need me for anything.
User avatar
Riamus
Global Moderator
Global Moderator
 
Posts: 1783
Joined: Fri May 03, 2002 9:01 pm
Location: Massachusetts, USA

Postby Noel » Fri Aug 05, 2005 8:16 am

Noel
Member
Member
 
Posts: 6
Joined: Thu Aug 04, 2005 11:11 pm


Return to General Help

Who is online

Users browsing this forum: Bing [Bot] and 10 guests