-
-
Notifications
You must be signed in to change notification settings - Fork 319
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
don't require account-notify/away-notify for WHOX #1793
base: master
Are you sure you want to change the base?
Conversation
an alternative solution is to check what |
Codecov Report
@@ Coverage Diff @@
## master #1793 +/- ##
==========================================
- Coverage 38.05% 38.04% -0.02%
==========================================
Files 211 211
Lines 85672 85665 -7
==========================================
- Hits 32605 32592 -13
- Misses 53067 53073 +6
Continue to review full report at Codecov.
|
if (weechat_hashtable_has_key (server->cap_list, "away-notify") | ||
|| weechat_hashtable_has_key (server->cap_list, "account-notify") | ||
|| ((IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_AWAY_CHECK) > 0) | ||
&& ((IRC_SERVER_OPTION_INTEGER(server, IRC_SERVER_OPTION_AWAY_CHECK_MAX_NICKS) == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello,
You are removing the use of options away_check and away_check_max_nicks (this one becomes completely unused in IRC plugin), is that wanted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I don't think there's a reason to ever not use WHOX when it is available
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But these options are there to let the user enable or disable WHO (or WHOX), based on how many nicks are in the channel. Purpose is to limit the bandwith used (WHO responses can be huge on some channels).
Using WHOX when available is OK for me, but I would like to keep the feature to completely disable WHO(X) if needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair enough. i'll tweak the PR in a bit
when you connect weechat to znc, you first get a
CAP
dance like this:and then once znc has figured out what network you're connecting to, you get this:
and then it takes until after znc has already finished replaying
NAMES
to you for you to get thiswhich means by the time you're hitting the code that I'm changing, you don't know that the network you're on supports
away-notify
oraccount-notify
, which means thisif
will reliably fail and weechat simply won't send a WHOX request. this can be solved by simply sending WHOX whenever a network supports it.