First attempt of creating a SILC plugin for weechat
C CMake
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
media
.gitignore
CMakeLists.txt
license
readme.md
silc-bar.c
silc-bar.h
silc-commands.c
silc-commands.h
silc-config.c
silc-config.h
silc-connections.c
silc-connections.h
silc-keys.c
silc-keys.h
silc-modes.c
silc-modes.h
silc-nicklist.c
silc-nicklist.h
silc-notify.c
silc-operations.c
silc-operations.h
silc-plugin.c
silc-plugin.h

readme.md

A WeeChat plugin for silc

GitHub version GitHub forks GitHub issues GitHub license

Installation

  • Install weechat either from source or with your favorite package manager
    • Make sure weechat.pc is in either /usr/lib/pkgconfig/ or /usr/local/lib/pkgconfig/`
  • Install the silc tookit either from source or your favorite package manager
    • Make sure silcclient.pc is in either /usr/lib/pkgconfig/ or /usr/local/lib/pkgconfig/`
  • Clone the latest version of this plugin
git clone git@github.com:bsx/weechat-silc.git
  • Make a build directory and run cmake and make
cd weechat-silc
mkdir build
cd build
cmake ..
make
  • Install the now built libweechatsilc.so
sudo make install

Troubleshooting

If you get a CMake Error that either module silccliient or weemake were not found

-- checking for module 'weechat>=1.5'
--   package 'weechat>=1.5' not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:279 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:333 (_pkg_check_modules_internal)
  CMakeLists.txt:14 (pkg_check_modules)

-- checking for module 'silcclient'
--   package 'silcclient' not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:279 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:333 (_pkg_check_modules_internal)
  CMakeLists.txt:15 (pkg_check_modules)

You either don't have the appropiate .pc files in their right place or you might need to set your PKG_CONFIG_PATH

export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig

Usage

What you can do

  • connecting to a silc server: /silc connect
  • joining a channel: /silc join
  • talking in a channel
  • nicklist and modes should work as well
  • private messages: /silc msg []
  • disconnecting from a server: /silc disconnect

What you can't do yet (PR's very much appreciated)

  • leaving a channel (you can close the buffer, but that will just lead to madness)
  • changing channel or user modes
  • setting a channel topic
  • nick changes (both yours and others)
  • kicking people and being kicked (see: leaving a channel)
  • password prompts for keys (currently just loads/generates a key in the current working directory)

References