Giter Club home page Giter Club logo

Comments (7)

nektro avatar nektro commented on September 22, 2024 1

Given,

Request up to limit number of messages [...]

and

While an ISUPPORT token value of 0 may be used to indicate no message limit exists, servers SHOULD set and enforce a reasonable maximum and properly throttle CHATHISTORY commands to prevent abuse.

I read this as a <limit> of 0 would return no messages.

from ircv3-specifications.

Herringway avatar Herringway commented on September 22, 2024

I cannot see how "no message limit" could be interpreted as "a limit of zero messages".

from ircv3-specifications.

slingamn avatar slingamn commented on September 22, 2024

The semantics of the 005 token and the limit argument of the CHATHISTORY command are separate. The specification, as written, entails that a CHATHISTORY command with a limit argument of 0 receives an empty batch.

from ircv3-specifications.

mokou avatar mokou commented on September 22, 2024

A <limit> of 0 to indicate "no message limit" or "some default limit" would IMO be more useful than making a request for "0 messages". I don't see why anyone would ever desire the latter.

If a <limit> of 0 isn't desired as "no message limit" for whatever reason, allowing for the use of * to indicate "some default limit" would be nice.

I would hope this gets addressed before #437 is completed.

from ircv3-specifications.

nektro avatar nektro commented on September 22, 2024

I cannot see how "no message limit" could be interpreted as "a limit of zero messages".

because I interpreted this parameter as a direct argument to something like https://www.sqlite.org/lang_select.html#the_limit_clause

from ircv3-specifications.

slingamn avatar slingamn commented on September 22, 2024

If a of 0 isn't desired as "no message limit" for whatever reason, allowing for the use of * to indicate "some default limit" would be nice.

Could you clarify the use case here? The CHATHISTORY command is not intended for use by end users directly, it's intended for programmatic use by client software. Is there a reason client software would not be able to choose its own limit?

from ircv3-specifications.

mokou avatar mokou commented on September 22, 2024

If a of 0 isn't desired as "no message limit" for whatever reason, allowing for the use of * to indicate "some default limit" would be nice.

Could you clarify the use case here? The CHATHISTORY command is not intended for use by end users directly, it's intended for programmatic use by client software. Is there a reason client software would not be able to choose its own limit?

Ah, I somehow missed the part where it says a CHATHISTORY ISUPPORT token MUST be sent with the server's limit. With that in mind I can't imagine a <limit> of * being all that useful.

from ircv3-specifications.

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.