8000 Implemented channel sorting + stable join order by sebageek · Pull Request #238 · znc/znc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Implemented channel sorting + stable join order #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sebageek
Copy link

When connecting to znc the join is unpredictable (or in the same way it was when znc was started the first time). With this patch a sort order can be defined. This is an numeric attribute attached to each channel. On AddChannel() SortChannels() is called. This also happens when setting a SortOrder via the *status bot thingy.

Fix #104

@psychon
Copy link
Member
psychon commented Oct 13, 2012

Uhm, so this sorts zncs internal channel vector. So what? This won't work e.g. when you connect to znc before it joins channels and... dunno

@sebageek
Copy link
Author

Yup, this works only when reconnecting to znc and this is exactly my use case (and to be honest the only usecase I can imagine for implementing this).

When I connect to znc (with xchat or irssi) I want my channels to be in the correct order, which I specify by setting a sort order. Both irssi and xchat obey the order in which they get the join messages from znc and therefore on connect my channels are sorted. Also this works by configuring the SortOrder attribute in your znc.conf before starting znc (but that is not my usecase).

I CAN reorder my channels in xchat but I cannot carry that state between restarts of xchat. Also there is no (easy) way to give xchat the ability to sort the channels like I want them. Another advantage of doing this in znc is that I have my ordering independant from the device which I use ot connect to znc.

On the "won't work before znc joins the channels": That is correct. ZNC lets you join the channels in the order it is able to join the channels. One could do dirty things with timers against that but I don't consider that being useful. As I intend to keep my bouncer running this corner case shouldn't happen that often to me (and in that case I always could tell my IRC client to reconnect and everything is shiny).

@psychon
Copy link
Member
psychon commented Oct 15, 2012

For irssi: /layout save and /save

@chx
Copy link
chx commented Nov 21, 2012

This would be superb useful IMO.

@rmiddle
Copy link
rmiddle commented Jul 19, 2013

Just reading though the code it looks simple enough and would be useful for me.

m0vie pushed a commit to m0vie/znc that referenced this pull request Jun 17, 2014
@nemysis
Copy link
nemysis commented Jul 24, 2014

This is not yet solved. Today i have lose the correct order with ZNC, and HexChat obey the order. After more restart is all the same with ZNC, is bad sorted. ZNC not look what is in normal IRC client order sometimes.

m0vie pushed a commit to m0vie/znc that referenced this pull request Jan 23, 2015
jacksonmj pushed a commit to jacksonmj/znc that referenced this pull request Oct 16, 2015
@Mikaela
Copy link
Contributor
Mikaela commented Feb 2, 2016

It seems that there are commits here after the last comment (GitHub doesn't notify when commits are added to PR, you must comment after that so repo owners get hte information) and the PR has merge conflict.

@DarthGandalf
Copy link
Member

No new commits are added to it... They are cherry-picks of this commit to
other forks of ZNC.

2016-02-02 10:31 GMT+00:00 Mikaela Suomalainen notifications@github.com:

It seems that there are commits here after the last comment (GitHub
doesn't notify when commits are added to PR, you must comment after that so
repo owners get hte information) and the PR has merge conflict.


Reply to this email directly or view it on GitHub
#238 (comment).

stefansaraev added a commit to stefansaraev/znc that referenced this pull request Jan 7, 2018
@luke-jr
Copy link
luke-jr commented Mar 21, 2019

Surprised this isn't merged yet. Sure, it's not perfect, but ZNC is basically unusable without it IMO...

Rebased on 1.7.1 here:

https://bpaste.net/show/8a0623b000ba
https://bpaste.net/show/79c78abb0d07

dscharrer pushed a commit to dscharrer/znc that referenced this pull request Jul 20, 2019
Fix znc#104

znc#238

Daniel Scharrer <daniel@constexpr.org>: Ported to ZNC 1.6+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow ordering channels [$15]
8 participants
0