WeeChat/dc

From FlashTux

Jump to: navigation, search

dc is a protocol plugin for weechat

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

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

Contents

How to build

Get

method 1: from snapshot (preferred)

There is daily generated snapshot of last weechat+dc: http://vlk.pp.ru:1214/weechat-dc.tar.gz Just download and untar.

method 2: manual

First you have to get last dev version of weechat

$ sed -e 's/TARGET_LINK_LIBRARIES(\([^)]*\))/TARGET_LINK_LIBRARIES(\1 pthread)/' -i.bak "weechat/src/gui/curses/CMakeLists.txt"
$ cd weechat/src/plugins
$ wget -O dc.tar.bz2 "http://vlk.pp.ru:1214/weechat-dc/snapshot/weechat-dc-master.tar.bz2"
$ tar -xjf dc.tar.bz2
$ mv weechat-dc-master dc
$ cat >> CMakeLists.txt << EOF

IF(NOT DISABLE_DC)
  ADD_SUBDIRECTORY( dc )
ENDIF(NOT DISABLE_DC)
EOF

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

Alternate way of build via script (does not work currently)

There is also a script that can build weechat+dc in most easy way. In order to use it you need to do 'git clone' before you can use that script and this script should be run from weechat git dir. http://athatia.golemj.net/~golemj/weechat/dc/update_and_install.sh (thanks to GolemJ)

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