| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
Clean up a little bit
|
| |
| |
| |
| | |
This doesn't seem to be used, so just remove it.
|
| |
| |
| |
| | |
The cache is gone, remove some related code.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Today I learned that sometimes, rather than the key missing, it has the value
None. In this case, (key in dict) is true!
This fixes an issue where, if the backscroll of a channel contained such a
message, it would throw while fetching the backscroll and cut off without
fetching all of it.
Signed-off-by: Ben Kelly <btk@google.com>
Signed-off-by: Ben Kelly <bk@ancilla.ca>
|
|\ \
| | |
| | | |
Add command for setting Slack Status
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This encodes everything sent into weechat, and decodes the return
values, so we don't have to do it every place we call weechat. We still
have to decode the arguments in all of the callback functions though.
The encode_to_utf8 and decode_from_utf8 functions traverses data
structures and encodes/decodes all of the strings inside the structures.
|
| | |
| | |
| | |
| | |
| | | |
We will readd these in the appropriate places, as described two commits
ago.
|
| | |
| | |
| | |
| | | |
This was not used anywhere.
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This changes all strings to be unicode strings in an attempt to handle
unicode better. The idea is to use unicode everywhere internally in
wee_slack and decode/encode where data is received/sent to/from
wee-slack.
That means we have to decode strings received from weechat or slack and
encode strings we send to them. This way encoding and decoding is done
on specific places, and if done everywhere, we should not get any
unicode errors.
|
|/
|
|
| |
Lots of missing whitespace and other minor fixups.
|
| |
|
| |
|
| |
|
|\
| |
| | |
Defer nick colourization to weechat's built in support
|
| |
| |
| |
| | |
Signed-off-by: Ben Kelly <btk@google.com>
|
|\ \
| | |
| | | |
Translate slack formatting codes to/from IRC formatting codes
|
| |/
| |
| |
| | |
Signed-off-by: Ben Kelly <btk@google.com>
|
|/
|
|
| |
Signed-off-by: Ben Kelly <btk@google.com>
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Set localvar which is picked up by weechat and which should be picked
up by `screen_away.py` and similar tools.
Thanks to Tor Hveem (@torhve) for inspiration.
Fixes: #161
This should also make /away D
|
| | |
|
| | |
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
All the per-setting globals are replaced with a single global object,
'config'; its attrs are the weechat settings. They're automatically
updated on config change, and the setting names and defaults are
specified as part of a map in the PluginConfig class definition.
To add a new setting, add the setting name and default to
PluginConfig.settings, and if it's not a boolean, add an appropriate
PluginConfig.get_<name> method as well.
Signed-off-by: Ben Kelly <bk@ancilla.ca>
|
|\ \
| | |
| | | |
Handles upload with spaces in filename
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|/ / |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
| |
If you use s/foo/bar/, use actual regexes for this, since that's what
some of us expect. Also add support for /g to do it globally.
Don't add any way to have the old functionality, if too many people
complain we can have that behind another syntax or a flag.
Based heavily on the code by @terminalmage
Fixes #219, #197
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On very busy slack networks the default timeout of 20000 can be a
problem. This timeout can mean that the extension is unable to download
all the necesarry data before weechat times out the connection.
This patch allows for the timeout to be adjusted so that for larger
networks the end user can specify it.
Based on #279 by @GregBowyer.
Closes: #279
|
| |
|
|\
| |
| | |
Remove unnecessary channels.join API request
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
There are two problems with this API request:
1. According to https://api.slack.com/methods/channels.join, "user" is
not a valid argument.
2. The hash table lookup in the removed line of code is destined to fail
anyway, because ``self.name`` here refers to the channel name, which
is not present in the ``users`` SearchList() instance as it maps
usernames to the Slack API user IDs. Indeed, this causes the call to
``users.find(self.name)`` to return ``None``, causing an
AttributeError to be raised.
Fixes #190.
|
|\ \
| | |
| | | |
Performance improvements
|