WeeChat/dc

From FlashTux

Jump to: navigation, search

dc is protocol plugin for weechat

Our repo is here http://217.172.20.124:1212/?p=dc;a=summary

Get latest snapshot http://217.172.20.124:1212/?p=dc;a=snapshot;h=master;sf=tgz

Contents

How to build

You have to get last dev version of weechat

$ cd weechat/src/plugins
$ wget "http://217.172.20.124:1212/?p=dc;a=snapshot;h=master;sf=tgz"
$ tar -xzf dc-master.tar.gz
$ cat >> CMakeLists.txt
IF(NOT DISABLE_DC)
  ADD_SUBDIRECTORY( dc )
ENDIF(NOT DISABLE_DC)

Also, you have to add pthread to libraries to dc plugin work correctly. Edit weechat/src/gui/curses/CMakeLists.txt to make

TARGET_LINK_LIBRARIES(${EXECUTABLE} ${STATIC_LIBS} ${EXTRA_LIBS} ${STATIC_LIBS})

turn to

TARGET_LINK_LIBRARIES(${EXECUTABLE} ${STATIC_LIBS} ${EXTRA_LIBS} ${STATIC_LIBS} pthread)

Then build weechat as usual

Screenshots

Main hub buffer

dc-hub.png

Buffer with user's files list

dc-listbuf.png

Extended users list

dc-userbuf.png

Usage

Currently dc uses only one command /dc and many subcommands within it to not interfere with other weechat commands. Some incomplete manual is available inside weechat, use /help dc

Hubs management

To add a hub use

/dc hub add supermegahub a=example.com:411 n=dc_tester c=UTF-8

you may find hub lists in http://www.dchublist.com/ (currently dc plugin can't handle such links, use your hands)

You can check what settings have you done with

/set dc*

Connecting/disconnecting

To connect a hub use

/dc connect supermegahub

To disconnect

/dc disconnect supermegahub

or just

/dc disconnect

if within hub buffer

Sharing/Hashing

To share some dir use

/dc share /some/dir [as supername]

To hash files shared you need to issue

/dc rehash

then, after hashing complete, use

/dc reshare

to regenerate file list with TTH hashes

Downloading lists/files

To download a list from user on hub use

/dc dl supermegahub user

this command will download list and open list buffer for you

To download a file use

/dc dl supermegahub user TTH file_size local_filename

but better if you would use interface provided by list buffer: press alt+enter (generated command will appear on command line), then enter to submit command (inspired by iset script :)

Open buffer with list of users:

/dc userbuf

inside a hub buffer. You can use alt+enter, then enter to download list from selected user

Personal tools