Comments (3)
This could be "fixed" by #66 (if you can can change the message and redirect in a flexible way).
I schedule this issue for v1.1.
from weechat.
Just to keep information all in one place.
This issue arose using the script colorize_nicks.py in a buffer with a semicolon in the name e.g. "ponychat.#asdfjkl;". Since the current buffer's name was incorrectly parsed, no nicks on the buffer were colorized.
from weechat.
Not easy to fix this problem without backward incompatibility.
The solutions I can think of are:
Solution 1:
Escape the semicolons in the buffer name, for example: irc;#wee\;chat;tags
(if the channel is wee;chat
.
Drawbacks:
- breaks API (minor)
- scripts must be updated to properly split string, and it's hard to parse such string, the
\
must be taken into account.
Solution 2:
Add another modifier that sends "buffer_pointer;tags".
Drawbacks:
- scripts must be updated to use the new modifier
- weird to have 2 modifiers for the same thing
- introduces slowness in WeeChat (2 modifiers are sent per message displayed).
Solution 3:
As I already suggested, replace plugin;buffer_name
by a buffer pointer (like 0x123abc
), for example: 0x123abc;tags
.
This definitely fixes the problem.
Drawbacks:
- breaks API (major)
- scripts must be updated to take care about the 2 possible formats, depending on the WeeChat version used, and they must split only on the first
;
(just in case there's a;
in tags).
I think the best is to implement solution 3, which fixes definitely the problem, but is not backward compatible.
So I'll do this and fix all scripts in repository to be compatible with both formats (only scripts that actually use the modifier data to find the buffer or use tags).
from weechat.
Related Issues (20)
- Ask for confirmation when sending a command preceded by one or more spaces HOT 1
- being able to create spacer items
- trigger: rename the trigger_filter localvar to filter for consistency HOT 1
- irc: reading data on socket: error -110 The TLS connection was non-properly terminated - when proxy loses connection to the upstream server
- Binding keys F10 to F20 display a warning about raw code or invalid key
- Add incremental search in commands history
- change the way buflist.look.signals_refresh works
- syntax highlighting for eval HOT 3
- Inbound SASL PLAIN for relay (irc) clients
- weechat crashes on exit when both title.py and autosort.py are loaded (voidlinux) HOT 7
- a new eval variable to make good use of short-circuit evaluation
- WeeChat ignores numeric 730 when using `/quote MONITOR + <nick>`
- Weechat should generate appdata.xml metadata HOT 2
- segfault caused by reloading the spell plugin on alpine
- Infinite loop when displaying emojis in excessively small terminal HOT 2
- weechat fails to run with python dataclasses HOT 3
- strange behavior with /repeat and ${raw:...} in 4.2.0 HOT 1
- Configurable permissions for irc.conf and other files (such as group ownership)
- Add an escape hatch for scripts to be able to print arbitrary ansi escapes HOT 4
- "irc_is_message_ignored" is calling the wrong callback HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weechat.