To create new wiki account, please join us on #znc at Libera.Chat and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.

Partdetach: Difference between revisions

From ZNC
Jump to navigation Jump to search
>Sketch
No edit summary
m updated network location
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{External Module}}
{{External Module}}
http://people.znc.in/~psychon/znc/modules/partdetach.cpp or http://people.znc.in/~psychon/znc/modules/partdetach2.cpp
For ZNC prior to version 1.0: http://people.znc.in/~psychon/znc/modules/partdetach.cpp or http://people.znc.in/~psychon/znc/modules/partdetach2.cpp


The above modules do not work in 1.0+.  This one does: https://gist.github.com/Socialery/7058137
For ZNC version 1.0 and later: https://gist.github.com/Socialery/7058137


Alternatively, depending on [[modpython]], there is a Python module, which doesn't need extra compilation and shouldn't depend on the ZNC version too much (it still needs at least ZNC 1.0):
There is also a python module at https://github.com/Nothing4You/znc-modules/blob/master/part_detach.py - version compatibility unknown.


== Description ==
== Description ==
This network module detaches the user from the channel which is parted.
This network module detaches the channel instead of parting it.
To actually part a channel the user has to part it twice, first part to detach, second part to actually part.
 
This allows <code>/close</code> or <code>/part</code> to close a given window/tab in your client but makes ZNC detach the channel, instead of fully parting it.
 
To actually part a channel it must be parted twice, first part to detach, second part to actually part: <code>/part #channel</code>


== Installation ==
== Installation ==
First you have to make sure [[modpython]] is installed and loaded.
If you chose the >= 1.0 compatible version, here is example installation (znc-buildmod required):
Then you can place [https://github.com/Nothing4You/znc-modules/blob/master/part_detach.py this code] in ~/.znc/modules/ and load it as global module.
 
mkdir ~/.znc/modules ; cd ~/.znc/modules
wget https://gist.githubusercontent.com/Socialery/7058137/raw/2eeb084c5be845d0b4dd37bc5576ce8160140c3c/partdetach2.cpp
znc-buildmod partdetach2.cpp
 
You can then load the module with <code>/msg *status loadmod partdetach2</code>
 
If you chose the python module, make sure [[modpython]] is installed and loaded, first.
Then, place it as ~/.znc/modules/part_detach.py


== Configuration ==
== Configuration ==
Line 18: Line 29:


== Support ==
== Support ==
You can find me ([[User:Nothing4You|Nothing4You]]) on irc, #znc on freenode, or use the [https://github.com/Nothing4You/znc-modules/issues Issue Tracker] on GitHub.
You can find me ([[User:Nothing4You|Nothing4You]]) on irc, #znc on [https://libera.chat Libera.Chat], or use the [https://github.com/Nothing4You/znc-modules/issues Issue Tracker] on GitHub.

Latest revision as of 19:09, 29 December 2021

For ZNC prior to version 1.0: http://people.znc.in/~psychon/znc/modules/partdetach.cpp or http://people.znc.in/~psychon/znc/modules/partdetach2.cpp

For ZNC version 1.0 and later: https://gist.github.com/Socialery/7058137

There is also a python module at https://github.com/Nothing4You/znc-modules/blob/master/part_detach.py - version compatibility unknown.

Description

This network module detaches the channel instead of parting it.

This allows /close or /part to close a given window/tab in your client but makes ZNC detach the channel, instead of fully parting it.

To actually part a channel it must be parted twice, first part to detach, second part to actually part: /part #channel

Installation

If you chose the >= 1.0 compatible version, here is example installation (znc-buildmod required):

mkdir ~/.znc/modules ; cd ~/.znc/modules
wget https://gist.githubusercontent.com/Socialery/7058137/raw/2eeb084c5be845d0b4dd37bc5576ce8160140c3c/partdetach2.cpp
znc-buildmod partdetach2.cpp

You can then load the module with /msg *status loadmod partdetach2

If you chose the python module, make sure modpython is installed and loaded, first. Then, place it as ~/.znc/modules/part_detach.py

Configuration

There are no configurable options.

Support

You can find me (Nothing4You) on irc, #znc on Libera.Chat, or use the Issue Tracker on GitHub.