WeeChat/dc

From FlashTux

Jump to: navigation, search

dc is a protocol plugin for weechat

Our repo is here http://git.vlk.pp.ru/weechat-dc/

Get latest snapshot http://git.vlk.pp.ru/weechat-dc/snapshot/weechat-dc-master.tar.bz2

Contents

How to build

Get

First you have to get last version of weechat. You may use stable or dev. The following was tested for weechat-0.3.2. I suppose, any recent version should work. Further steps assume you have untared weechat copy in the directory weechat.

First get the required files

$ wget "http://git.vlk.pp.ru/weechat-dc/plain/weechat-patch.diff"
$ wget "http://git.vlk.pp.ru/weechat-dc/snapshot/weechat-dc-master.tar.bz2"

Apply patch for weechat make scripts

$ cd weechat
$ patch -p1 < ../weechat-patch.diff

Untar dc plugin sources

$ cd src/plugins
$ tar -xjf weechat-dc-master.tar.bz2
$ mv weechat-dc-master dc

Build

Then build weechat as usual with cmake. I usually do it like this:

$ mkdir b
$ cd b
$ cmake ../weechat -DDEBUG=ON -DPREFIX=/somewhere/you/want/install/weechat
$ make install

Screenshots

Main hub buffer

dc-hub.png

Buffer with user's files list

dc-listbuf.png

Extended users list

dc-userbuf.png

Downloads

dc-dlbuf.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

You may also use command

/dc reshare

it will refresh your file list but does not hash any new files found, so they will be in your files.xml.bz2 but without hash recorded

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