Are user commands available to the ordinary Joe...

Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)

Moderator: Moderators

Locked
ScrewU
Posts: 7
Joined: 2004-07-08 11:28
Location: UK (Aquae Sulis)
Contact:

Are user commands available to the ordinary Joe...

Post by ScrewU » 2004-07-19 10:49

... or only usuable by those running hubs.

Why I ask is that some hubs I've connected to, threaten to ban if you regularly disconnect without warning your uploads that you intend to do so.

Is it possible to create a user command to send a pm to all uploads with an anouncement like "Sorry, shutting down for maintenance... be back later"?

Thanks,
ScrewU
If there's a hard way to do anything, I'll find it.
DC++ v0.403

Todi
Forum Moderator
Posts: 699
Joined: 2003-03-04 12:16
Contact:

Post by Todi » 2004-07-19 12:15

Everything you can do with $Usercommands you can do with regular Usercommands. Just add them into your Settings -> Advanced -> User Commands.

This would work for instance:
Command Type: PM
Context: User Menu
Name: Send Message
Command: %[line:Message]
To: %[nick]

ScrewU
Posts: 7
Joined: 2004-07-08 11:28
Location: UK (Aquae Sulis)
Contact:

Post by ScrewU » 2004-07-19 17:06

Thanks for the pointer Todi.

I find that...

Command Type: PM
Context: User Menu
Name: Maintenance
Command: Shutting down for Maintenance... be back later.
To: %[nick]

... allows me to r/click on a user and select 'Maintenance', which automatically sends the pm "Shutting down for Maintenance... be back later." to that user.

What I would like to achieve is:

Select all users downloading from me in the transfers window.
Right click and select 'Maintenance'.
Send the pm to all users selected.

Is this possible?

('Maintenance' is available in the tranfers window context menu when 'Context: User Menu' is selected, but it doesn't function).

Thanks,
ScrewU
If there's a hard way to do anything, I'll find it.
DC++ v0.403

Todi
Forum Moderator
Posts: 699
Joined: 2003-03-04 12:16
Contact:

Post by Todi » 2004-07-20 05:40

Did you try it? It functions fine for me. You're probably confused because you didn't get a PM window, but you won't get one of those unless the user responds.

ScrewU
Posts: 7
Joined: 2004-07-08 11:28
Location: UK (Aquae Sulis)
Contact:

Post by ScrewU » 2004-07-20 12:56

I did try but assumed it hadn't work for exactly the reason you explained.

Thanks,
ScrewU
If there's a hard way to do anything, I'll find it.
DC++ v0.403

Locked