Giter Club home page Giter Club logo

Comments (3)

flashcode avatar flashcode commented on May 18, 2024

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.

flowbish avatar flowbish commented on May 18, 2024

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.

flashcode avatar flashcode commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.