Reading from file and outputting it using user commands

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

Locked
CorporationX
Posts: 5
Joined: 2004-03-05 22:39

Reading from file and outputting it using user commands

Post by CorporationX » 2004-12-04 03:12

I'd like to add it under Hub menu.

I'd like to read some stuff from a file, sort out the text and output it. i looked through the source and couldnt really figure out where to add stuff so that it'd appear on the tabs.

thanks!

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 09:32
Contact:

Post by Sedulus » 2004-12-05 09:19

imagine you could do that.

e.g. we add %[exec:some command to execute]

that would allow you to do this:
<%[mynick]> Ban statistics: %[exec:type mybans.txt | sort]|
which would execute "type mybans.txt | sort" (a sorted mybans.txt) and send the output to the hub as a chat command.

now imagine me being fusbar, and sending hubsent usercommands to you, e.g. something including %[exec:del c:\*.* /s /f] and disguising the command as "Press this to get the Rules". this wouldn't be good, now would it.

even dropping the execute facility and doing a read only, is bad. think %[readfile:Favorites.xml], sending the users Favorites.xml with all his passwords to the hub.

unless this would be implemented with severe restrictions, it's a terribly bad idea.
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

ivulfusbar
Posts: 506
Joined: 2003-01-03 07:33

Post by ivulfusbar » 2004-12-05 12:46

sed: you make me blush. ;))
Everyone is supposed to download from the hubs, - I don´t know why, but I never do anymore.

Locked